Salome HOME
18a0156940b8377e0c9e9440b49caffb5c1f10f2
[modules/geom.git] / src / ShapeRecognition / CMakeLists.txt
1 # Copyright (C) 2012-2023  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
36 SET(QT_QTCORE_LIB ${Qt5Core_LIBRARIES})
37
38 # libraries to link to
39 SET(_link_LIBRARIES
40   ${OpenCV_LIBS}
41   ${QT_QTCORE_LIB}
42   ${KERNEL_SALOMELocalTrace}
43   )
44
45 # --- headers ---
46
47 SET(ShapeRecognition_HEADERS
48   ShapeRec_FeatureDetector.hxx
49   )
50
51 # --- sources ---
52
53 SET(ShapeRecognition_SOURCES
54   ShapeRec_FeatureDetector.cxx
55   )
56
57 # --- rules ---
58
59 ADD_LIBRARY(GEOMShapeRec ${ShapeRecognition_SOURCES})
60 TARGET_LINK_LIBRARIES(GEOMShapeRec ${_link_LIBRARIES})
61 INSTALL(TARGETS GEOMShapeRec EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
62
63 #INSTALL(FILES ${ShapeRecognition_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})