Salome HOME
Merge remote branch 'origin/V7_dev'
[modules/gui.git] / src / DDS / CMakeLists.txt
1 # Copyright (C) 2007-2016  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   ${CAS_INCLUDE_DIRS}
28 )
29
30 # additional preprocessor / compiler flags
31 ADD_DEFINITIONS(${CAS_DEFINITIONS})
32
33 # libraries to link to
34 SET(_link_LIBRARIES ${CAS_KERNEL} ${CAS_OCAF})
35
36 # --- headers ---
37
38 # header files / to install
39 SET(DDS_HEADERS
40   DDS.h
41   DDS_DicGroup.h
42   DDS_DicItem.h
43   DDS_Dictionary.h
44   DDS_KeyWords.h
45 )
46
47 # --- sources ---
48
49 # sources / static
50 SET(DDS_SOURCES
51   DDS_DicGroup.cxx
52   DDS_DicItem.cxx
53   DDS_Dictionary.cxx
54   DDS_KeyWords.cxx
55 )
56
57 # --- rules ---
58
59 ADD_LIBRARY(DDS ${DDS_SOURCES})
60 TARGET_LINK_LIBRARIES(DDS ${_link_LIBRARIES})
61 INSTALL(TARGETS DDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
62
63 INSTALL(FILES ${DDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})