summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8295d062..b0a5af63 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -515,13 +515,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)