]> SALOME platform Git repositories - modules/geom.git/blob - src/ShapeRecognition/CMakeLists.txt
Salome HOME
Merge branch 'V8_2_BR'
[modules/geom.git] / src / ShapeRecognition / CMakeLists.txt
1 # Copyright (C) 2012-2016  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, 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
23 # additional include directories
24 INCLUDE_DIRECTORIES(
25   #${CAS_INCLUDE_DIRS}
26   ${KERNEL_INCLUDE_DIRS}
27   ${OPENCV_INCLUDE_DIR}
28   ${QT_INCLUDES}
29   ${CMAKE_CURRENT_SOURCE_DIR}
30   )
31
32 # additional preprocessor / compiler flags
33 ADD_DEFINITIONS(
34   #${CAS_DEFINITIONS}
35   ${QT_DEFINITIONS}
36   )
37 IF(NOT SALOME_GUI_BUILD_WITH_QT5)
38   SET(QT_QTCORE_LIB ${QT_QTCORE_LIBRARY})
39 ELSE()
40   SET(QT_QTCORE_LIB ${Qt5Core_LIBRARIES})
41 ENDIF()
42
43 # libraries to link to
44 SET(_link_LIBRARIES
45   ${OpenCV_LIBS}
46   ${QT_QTCORE_LIB}
47   ${KERNEL_SALOMELocalTrace}
48   )
49
50 # --- headers ---
51
52 SET(ShapeRecognition_HEADERS
53   ShapeRec_FeatureDetector.hxx
54   )
55
56 # --- sources ---
57
58 SET(ShapeRecognition_SOURCES
59   ShapeRec_FeatureDetector.cxx
60   )
61
62 # --- rules ---
63
64 ADD_LIBRARY(GEOMShapeRec ${ShapeRecognition_SOURCES})
65 TARGET_LINK_LIBRARIES(GEOMShapeRec ${_link_LIBRARIES})
66 INSTALL(TARGETS GEOMShapeRec EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
67
68 #INSTALL(FILES ${ShapeRecognition_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})