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