Salome HOME
Porting SALOME SMESH module to the CMake build system: initial version.
[modules/smesh.git] / src / Tools / padder / meshjob / impl / CMakeLists.txt
1 # Copyright (C) 2012-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 # --- options ---
21 # additional include directories
22 INCLUDE_DIRECTORIES(
23   ${KERNEL_INCLUDE_DIRS}
24   ${GEOM_INCLUDE_DIRS}
25   ${VTK_INCLUDE_DIRS}
26   ${CAS_INCLUDE_DIRS}
27   ${Boost_INCLUDE_DIRS}
28   ${OMNIORB_INCLUDE_DIR}
29   ${LIBXML2_INCLUDE_DIR}
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   ${CAS_DEFINITIONS}
42   ${BOOST_DEFINITIONS}
43   ${LIBXML2_DEFINITIONS}
44 )
45
46 # libraries to link to
47 SET(MeshJobManagerEngine_LIBRARIES
48   ${KERNEL_SalomeContainer}
49   ${KERNEL_SalomeKernelHelpers}
50   ${KERNEL_SalomeLifeCycleCORBA}
51   SalomeIDLSPADDER
52 )
53
54 SET(SPADDERPluginTesterEngine_LIBRARIES
55   ${KERNEL_SalomeContainer}
56   ${KERNEL_SalomeKernelHelpers}
57   SMESHimpl
58   SMESHEngine
59   SMESHDS
60   SMDS
61   SMESHUtils
62   SalomeIDLSPADDER
63 )
64
65 # --- headers ---
66
67 # header files / no moc processing
68 SET(MeshJobManagerEngine_HEADERS
69   MeshJobManager_i.hxx
70 )
71
72 # --- sources ---
73
74 # sources / static
75 SET(MeshJobManagerEngine_SOURCES
76   MeshJobManager_i.cxx 
77 )
78
79 SET(SPADDERPluginTesterEngine_SOURCES
80   SPADDERPluginTester_i.hxx
81   SPADDERPluginTester_i.cxx
82 )
83
84 # --- rules ---
85
86 ADD_LIBRARY(MeshJobManagerEngine ${MeshJobManagerEngine_SOURCES})
87 TARGET_LINK_LIBRARIES(MeshJobManagerEngine ${MeshJobManagerEngine_LIBRARIES} )
88 INSTALL(TARGETS MeshJobManagerEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
89
90 ADD_LIBRARY(SPADDERPluginTesterEngine ${SPADDERPluginTesterEngine_SOURCES})
91 TARGET_LINK_LIBRARIES(SPADDERPluginTesterEngine ${SPADDERPluginTesterEngine_LIBRARIES} )
92 INSTALL(TARGETS SPADDERPluginTesterEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
93
94
95 INSTALL(FILES ${MeshJobManagerEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})