Salome HOME
Make comparison of updated shapes better.
[modules/shaper_study.git] / src / StudyData / CMakeLists.txt
1 # Copyright (C) 2012-2019  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
21 # --- options ---
22 # additional include directories
23 INCLUDE_DIRECTORIES(
24   ${KERNEL_INCLUDE_DIRS}
25   ${GEOM_INCLUDE_DIRS}
26   ${OpenCASCADE_INCLUDE_DIR}
27   ${SHAPER_INCLUDE_DIRS}
28 )
29
30 # additional preprocessor / compiler flags
31 ADD_DEFINITIONS(
32   ${OpenCASCADE_DEFINITIONS}
33   ${OMNIORB_DEFINITIONS}
34 )
35
36 # libraries to link to
37 SET(_link_LIBRARIES
38   SalomeIDLGEOM
39   ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
40   ${LIB_XAOShaper}
41 )
42
43 # --- headers ---
44
45 # header files / no moc processing
46 SET(STUDYDATA_HEADERS
47     StudyData.h
48     StudyData_Object.h
49     StudyData_Operation.h
50     StudyData_XAO.h
51 )
52
53 # --- sources ---
54
55 # sources / static
56 SET(STUDYDATA_SOURCES
57     StudyData_Object.cpp
58     StudyData_Operation.cpp
59     StudyData_XAO.cpp
60 )
61
62 # --- rules ---
63
64 ADD_LIBRARY(StudyData ${STUDYDATA_HEADERS} ${STUDYDATA_SOURCES})
65 #IF(WIN32)
66 #  TARGET_COMPILE_OPTIONS(SudyData PRIVATE /bigobj) 
67 #ENDIF(WIN32)
68
69 TARGET_LINK_LIBRARIES(StudyData ${_link_LIBRARIES} )
70 INSTALL(TARGETS StudyData EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
71
72 INSTALL(FILES ${STUDYDATA_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})