diff options
-rw-r--r-- | CMakeLists.txt | 8 |
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 |