Salome HOME
Migration to OpenCASCADE CMake configuration
[modules/geom.git] / src / ShapeRecognition / CMakeLists.txt
index 61f4072c682435c3bd92263ddbe4e2c624f2a2f4..dc550f509aaf8484499957a4e8b1bcb715a8b677 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE( ${QT_USE_FILE} )
 
 # --- options ---
 
 # additional include directories
 INCLUDE_DIRECTORIES(
-  #${CAS_INCLUDE_DIRS}
   ${KERNEL_INCLUDE_DIRS}
   ${OPENCV_INCLUDE_DIR}
   ${QT_INCLUDES}
@@ -32,14 +30,18 @@ INCLUDE_DIRECTORIES(
 
 # additional preprocessor / compiler flags
 ADD_DEFINITIONS(
-  #${CAS_DEFINITIONS}
   ${QT_DEFINITIONS}
   )
+IF(NOT SALOME_GUI_BUILD_WITH_QT5)
+  SET(QT_QTCORE_LIB ${QT_QTCORE_LIBRARY})
+ELSE()
+  SET(QT_QTCORE_LIB ${Qt5Core_LIBRARIES})
+ENDIF()
 
 # libraries to link to
 SET(_link_LIBRARIES
   ${OpenCV_LIBS}
-  ${QT_QTCORE_LIBRARY} # ${QT_LIBRARIES}
+  ${QT_QTCORE_LIB}
   ${KERNEL_SALOMELocalTrace}
   )
 
@@ -62,5 +64,3 @@ TARGET_LINK_LIBRARIES(GEOMShapeRec ${_link_LIBRARIES})
 INSTALL(TARGETS GEOMShapeRec EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
 #INSTALL(FILES ${ShapeRecognition_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
-
-