1 # Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # additional include directories
26 ${PYTHON_INCLUDE_DIRS}
28 ${OMNIORB_INCLUDE_DIR}
29 ${PTHREAD_INCLUDE_DIR}
31 ${PROJECT_SOURCE_DIR}/src/Qtx
32 ${PROJECT_SOURCE_DIR}/src/SUIT
33 ${PROJECT_SOURCE_DIR}/src/Event
34 ${PROJECT_SOURCE_DIR}/src/Style
37 # additional preprocessor / compiler flags
43 ${OMNIORB_DEFINITIONS}
45 IF(ENABLE_TESTRECORDER)
46 ADD_DEFINITIONS("-DENABLE_TESTRECORDER ${TESTRECORDER_DEFINITIONS}")
49 # libraries to link to
55 ${KERNEL_SalomeLifeCycleCORBA}
57 ${KERNEL_SALOMELocalTrace}
58 ${KERNEL_SalomeCatalog}
59 ${KERNEL_SalomeDSClient}
60 ${KERNEL_with_loggerTraceCollector}
61 ${KERNEL_SalomeIDLKernel}
62 ${KERNEL_SalomeContainer}
63 ${KERNEL_SalomeLauncher}
65 ${KERNEL_SALOMEBasics}
66 qtx suit Event SalomeStyle SalomeIDLGUI
68 IF(ENABLE_TESTRECORDER)
69 LIST(APPEND _link_LIBRARIES ${TESTRECORDER_LIBS})
74 # header files / to install
75 SET(SalomeSession_HEADERS
77 Session_ServerCheck.hxx
78 Session_ServerLauncher.hxx
79 Session_ServerThread.hxx
85 # sources / to compile
86 SET(SalomeSession_SOURCES
87 Session_ServerCheck.cxx
88 Session_ServerLauncher.cxx
89 Session_ServerThread.cxx
95 ADD_LIBRARY(SalomeSession ${SalomeSession_SOURCES})
96 TARGET_LINK_LIBRARIES(SalomeSession ${_link_LIBRARIES})
97 INSTALL(TARGETS SalomeSession EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
99 ADD_EXECUTABLE(SALOME_Session_Server SALOME_Session_Server.cxx)
100 TARGET_LINK_LIBRARIES(SALOME_Session_Server ${_link_LIBRARIES} SalomeSession)
101 INSTALL(TARGETS SALOME_Session_Server EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
103 INSTALL(FILES ${SalomeSession_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})