summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-15 04:33:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-15 04:33:00 +0200
commitfc14725b4699aff7119e99272e63959d68615855 (patch)
treeb30fcd460c6cf98f0c2888c7f6b57b7e771d1c58 /CMakeLists.txt
parent7b0ce8034456271ab0ea15da9b60fe9b94d75dc0 (diff)
Ensure FaceAPI is only compiled by MSVC80
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f21defc..29baf906 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -521,8 +521,10 @@ if(SDK_SM_FACEAPI_PATH)
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()
- add_executable(opentrack-faceapi-wrapper ${opentrack-faceapi-wrapper-c})
- target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib")
+ if(MSVC80)
+ add_executable(opentrack-faceapi-wrapper ${opentrack-faceapi-wrapper-c})
+ target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib")
+ endif()
endif()
if(NOT SDK_FACEAPI_ONLY)
@@ -666,7 +668,7 @@ if(MSVC)
install(FILES ${pdbs} DESTINATION .)
endif()
-if(WIN32 AND SDK_SM_FACEAPI_PATH)
+if(WIN32 AND SDK_SM_FACEAPI_PATH AND MSVC80)
install(TARGETS opentrack-faceapi-wrapper
RUNTIME DESTINATION faceapi
LIBRARY DESTINATION faceapi