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