Salome HOME
Build SIMANIO on windows using Microsoft Visual Studio 2010.
[tools/simanio.git] / src / CMakeLists.txt
1 # Copyright (C) 2013-2014  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, or (at your option) any later version.
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   SimanIO.hxx 
33 )
34
35 # [ generated sources ]
36 # TODO: add procedure of automatic generation of the sources from the skeleton
37 # TODO: this will raise dependency of SimanIO on SIMAN (where skeleton file is)
38 #       and Apache Axis2/Java (which is used to generate wrappings)
39 SET(_generated_SOURCES
40   CheckIn.cpp
41   CheckInResponse.cpp
42   CreateConfigFile.cpp
43   CreateConfigFileResponse.cpp
44   GetFile.cpp
45   GetFileResponse.cpp
46   PutFile.cpp
47   PutFileResponse.cpp
48   SimanSalomeServiceStub.cpp
49 )
50
51 # [ static sources ]
52 SET(_other_SOURCES
53   SimanIO_Activity.cxx
54   SimanIO_Configuration.cxx
55   SimanIO_Document.cxx
56   SimanIO_Link.cxx
57 )
58
59 # [ all sources to be compiled ]
60 SET(SimanIO_SOURCES
61   ${_generated_SOURCES}
62   ${_other_SOURCES}
63 )
64
65 # [ target: library ]
66 ADD_LIBRARY(SimanIO SHARED ${SimanIO_SOURCES})
67 TARGET_LINK_LIBRARIES(SimanIO ${PLATFORM_LIBS} ${WSO2_LIBRARIES})
68 SET_TARGET_PROPERTIES(SimanIO PROPERTIES COMPILE_DEFINITIONS "AXIS2_DECLARE_EXPORT")
69 #SET_TARGET_PROPERTIES(SimanIO PROPERTIES COMPILE_DEFINITIONS "AXIS2_SVR_MULTI_THREADED")
70 INSTALL(TARGETS SimanIO EXPORT ${PROJECT_NAME}Targets DESTINATION lib)
71 INSTALL(FILES ${SimanIO_HEADERS} DESTINATION include)
72
73 # [ target: test ]
74 #ADD_EXECUTABLE(TestCreateConfigFile TestCreateConfigFile.cpp)
75 #TARGET_LINK_LIBRARIES(TestCreateConfigFile SimanIO)
76 #SET_TARGET_PROPERTIES(SimanIO PROPERTIES COMPILE_DEFINITIONS "AXIS2_DECLARE_EXPORT")
77 ##SET_TARGET_PROPERTIES(SimanIO PROPERTIES COMPILE_DEFINITIONS "AXIS2_SVR_MULTI_THREADED")
78 #INSTALL(TARGETS TestCreateConfigFile DESTINATION bin)