Salome HOME
173f5dfc89879413259b8e35938a3f0e0f2b3831
[tools/simanio.git] / src / CMakeLists.txt
1 #  Copyright (C) 2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  This library is free software; you can redistribute it and/or
4 #  modify it under the terms of the GNU Lesser General Public
5 #  License as published by the Free Software Foundation; either
6 #  version 2.1 of the License.
7 #
8 #  This library is distributed in the hope that it will be useful,
9 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 #  Lesser General Public License for more details.
12 #
13 #  You should have received a copy of the GNU Lesser General Public
14 #  License along with this library; if not, write to the Free Software
15 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # [ additional include dirs ]
21 INCLUDE_DIRECTORIES(
22   ${WSO2_INCLUDES}
23   ${CMAKE_CURRENT_SOURCE_DIR}
24 )
25
26 # [ headers to be installed ]
27 SET(SimanIO_HEADERS
28   SimanIO_Activity.hxx
29   SimanIO_Configuration.hxx
30   SimanIO_Document.hxx
31   SimanIO_Link.hxx
32 )
33
34 # [ generated sources ]
35 # TODO: add procedure of automatic generation of the sources from the skeleton
36 # TODO: this will raise dependency of SimanIO on SIMAN (where skeleton file is)
37 #       and Apache Axis2/Java (which is used to generate wrappings)
38 SET(_generated_SOURCES
39   CheckIn.cpp
40   CheckInResponse.cpp
41   CreateConfigFile.cpp
42   CreateConfigFileResponse.cpp
43   GetFile.cpp
44   GetFileResponse.cpp
45   PutFile.cpp
46   PutFileResponse.cpp
47   SimanSalomeServiceStub.cpp
48 )
49
50 # [ static sources ]
51 SET(_other_SOURCES
52   SimanIO_Activity.cxx
53   SimanIO_Configuration.cxx
54   SimanIO_Document.cxx
55   SimanIO_Link.cxx
56 )
57
58 # [ all sources to be compiled ]
59 SET(SimanIO_SOURCES
60   ${_generated_SOURCES}
61   ${_other_SOURCES}
62 )
63
64 # [ target: library ]
65 ADD_LIBRARY(SimanIO SHARED ${SimanIO_SOURCES})
66 TARGET_LINK_LIBRARIES(SimanIO ${PLATFORM_LIBS} ${WSO2_LIBRARIES})
67 INSTALL(TARGETS SimanIO EXPORT ${PROJECT_NAME}Targets DESTINATION lib)
68 INSTALL(FILES ${SimanIO_HEADERS} DESTINATION include)
69
70 # [ target: test ]
71 ADD_EXECUTABLE(TestCreateConfigFile TestCreateConfigFile.cpp)
72 TARGET_LINK_LIBRARIES(TestCreateConfigFile SimanIO)
73 INSTALL(TARGETS TestCreateConfigFile DESTINATION bin)