Salome HOME
cc7e3873e506e725e150b60cbf4f8c09ba02bf42
[modules/gui.git] / src / DDS / CMakeLists.txt
1 # Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
10 #
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22
23 # --- options ---
24
25 # additional include directories
26 INCLUDE_DIRECTORIES(
27   ${OpenCASCADE_INCLUDE_DIR}
28 )
29
30 # additional preprocessor / compiler flags
31 ADD_DEFINITIONS(${OpenCASCADE_DEFINITIONS})
32
33 # libraries to link to
34 SET(_link_LIBRARIES 
35     ${OpenCASCADE_FoundationClasses_LIBRARIES}
36     ${OpenCASCADE_ApplicationFramework_LIBRARIES})
37
38 # --- headers ---
39
40 # header files / to install
41 SET(DDS_HEADERS
42   DDS.h
43   DDS_DicGroup.h
44   DDS_DicItem.h
45   DDS_Dictionary.h
46   DDS_KeyWords.h
47 )
48
49 # --- sources ---
50
51 # sources / static
52 SET(DDS_SOURCES
53   DDS_DicGroup.cxx
54   DDS_DicItem.cxx
55   DDS_Dictionary.cxx
56   DDS_KeyWords.cxx
57 )
58
59 # --- rules ---
60
61 ADD_LIBRARY(DDS ${DDS_SOURCES})
62 TARGET_LINK_LIBRARIES(DDS ${_link_LIBRARIES})
63 INSTALL(TARGETS DDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
64
65 INSTALL(FILES ${DDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})