Salome HOME
Merge branch 'V9_7_BR'
[modules/smesh.git] / src / Tools / padder / meshjob / impl / CMakeLists.txt
1 # Copyright (C) 2012-2021  EDF R&D
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 # --- options ---
21 # additional include directories
22 INCLUDE_DIRECTORIES(
23   ${KERNEL_INCLUDE_DIRS}
24   ${GEOM_INCLUDE_DIRS}
25   ${OpenCASCADE_INCLUDE_DIR}
26   ${Boost_INCLUDE_DIRS}
27   ${OMNIORB_INCLUDE_DIR}
28   ${LIBXML2_INCLUDE_DIR}
29   ${MEDCOUPLING_INCLUDE_DIRS}
30   ${PROJECT_SOURCE_DIR}/src/SMESH
31   ${PROJECT_SOURCE_DIR}/src/SMESH_I
32   ${PROJECT_SOURCE_DIR}/src/SMESHDS
33   ${PROJECT_SOURCE_DIR}/src/SMDS
34   ${PROJECT_SOURCE_DIR}/src/SMESHUtils
35   ${PROJECT_BINARY_DIR}/src/Tools/padder/meshjob/idl
36   ${PROJECT_BINARY_DIR}/idl
37 )
38
39 # additional preprocessor / compiler flags
40 ADD_DEFINITIONS(
41   ${OpenCASCADE_DEFINITIONS}
42   ${BOOST_DEFINITIONS}
43   ${LIBXML2_DEFINITIONS}
44   ${OMNIORB_DEFINITIONS}
45 )
46
47 IF(WIN32)
48   ADD_DEFINITIONS(-DNOGDI)
49 ENDIF(WIN32)
50
51 # libraries to link to
52 SET(MeshJobManagerEngine_LIBRARIES
53   ${KERNEL_SalomeContainer}
54   ${KERNEL_SalomeKernelHelpers}
55   ${KERNEL_SalomeLifeCycleCORBA}
56   SalomeIDLSPADDER
57 )
58
59 SET(SPADDERPluginTesterEngine_LIBRARIES
60   ${KERNEL_SalomeContainer}
61   ${KERNEL_SalomeKernelHelpers}
62   SMESHimpl
63   SMESHEngine
64   SMESHDS
65   SMDS
66   SMESHUtils
67   SalomeIDLSPADDER
68 )
69
70 # --- headers ---
71
72 # header files / no moc processing
73 SET(MeshJobManagerEngine_HEADERS
74   MeshJobManager_i.hxx
75 )
76
77 # --- sources ---
78
79 # sources / static
80 SET(MeshJobManagerEngine_SOURCES
81   MeshJobManager_i.cxx 
82 )
83
84 SET(SPADDERPluginTesterEngine_SOURCES
85   SPADDERPluginTester_i.hxx
86   SPADDERPluginTester_i.cxx
87 )
88
89 # --- rules ---
90
91 ADD_LIBRARY(MeshJobManagerEngine ${MeshJobManagerEngine_SOURCES})
92 TARGET_LINK_LIBRARIES(MeshJobManagerEngine ${MeshJobManagerEngine_LIBRARIES} )
93 INSTALL(TARGETS MeshJobManagerEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
94
95 ADD_LIBRARY(SPADDERPluginTesterEngine ${SPADDERPluginTesterEngine_SOURCES})
96 TARGET_LINK_LIBRARIES(SPADDERPluginTesterEngine ${SPADDERPluginTesterEngine_LIBRARIES} )
97 INSTALL(TARGETS SPADDERPluginTesterEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
98
99
100 INSTALL(FILES ${MeshJobManagerEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})