Salome HOME
CMake: new CMake procedure for GUI.
[modules/gui.git] / src / OBJECT / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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 INCLUDE_DIRECTORIES(
21   ${PTHREAD_INCLUDE_DIRS}
22   ${CAS_INCLUDE_DIRS}
23   ${QT_INCLUDES}
24   ${KERNEL_INCLUDE_DIRS}
25 )
26
27 SET(COMMON_LIBS
28   ${QT_LIBRARIES}
29   ${CAS_LDPATH}
30   ${TKV3d}
31 )
32
33 SET(SalomeObject_SOURCES
34   SALOME_InteractiveObject.cxx
35   SALOME_AISShape.cxx
36   SALOME_AISObject.cxx
37   SALOME_ListIO_0.cxx
38   SALOME_ListIteratorOfListIO_0.cxx
39   SALOME_ListNodeOfListIO_0.cxx
40   SALOME_Filter.cxx
41   SALOME_TypeFilter.cxx
42   SALOME_DataMapOfIOMapOfInteger_0.cxx
43   SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx
44   SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx
45 )
46
47 ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS})
48
49 ADD_LIBRARY(SalomeObject ${SalomeObject_SOURCES})
50 TARGET_LINK_LIBRARIES(SalomeObject ${COMMON_LIBS})
51 INSTALL(TARGETS SalomeObject EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
52
53 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
54 INSTALL(FILES ${COMMON_HEADERS_HXX} SALOME_Selection.h DESTINATION ${SALOME_INSTALL_HEADERS})