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