diff options
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8295d062..4a517168 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,12 +25,10 @@ file(GLOB opentrack-faceapi-wrapper-c "faceapi/*.cpp") include_directories(${CMAKE_SOURCE_DIR}) if(NOT SDK_FACEAPI_ONLY) - find_package(OpenCV REQUIRED) + find_package(OpenCV) find_package(Qt4 COMPONENTS QtCore QtGui QtDesigner QtXml QtNetwork REQUIRED) if(WIN32 AND NOT CMAKE_COMPILER_IS_GNUCC) - add_definitions(/D FTNOIR_FILTER_BASE_LIB /D FTNOIR_TRACKER_BASE_LIB /D FTNOIR_PROTOCOL_BASE_LIB /D_CRT_SECURE_NO_WARNINGS) - else(MSVC) add_definitions(-DFTNOIR_FILTER_BASE_LIB -DFTNOIR_TRACKER_BASE_LIB -DFTNOIR_PROTOCOL_BASE_LIB) endif(WIN32 AND NOT CMAKE_COMPILER_IS_GNUCC) @@ -515,13 +513,9 @@ if(WIN32 AND NOT SDK_FACEAPI_ONLY) add_library(opentrack-tracker-faceapi SHARED ${opentrack-tracker-faceapi-c} ${opentrack-tracker-faceapi-moc} ${opentrack-tracker-faceapi-uih} ${opentrack-tracker-faceapi-rcc}) target_link_libraries(opentrack-tracker-faceapi ${MY_QT_LIBS} opentrack-compat) endif() -if(MSVC80 AND SDK_SM_FACEAPI_PATH) +if((MSVC80 OR MINGW) AND SDK_SM_FACEAPI_PATH) add_executable(opentrack-faceapi-wrapper ${opentrack-faceapi-wrapper-c}) - if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) - target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib" "${SDK_MSVC80_PATH}/lib/msvcrt.lib") - else() - target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib") - endif() + target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib") endif() if(NOT SDK_FACEAPI_ONLY) |