From f06faebe98d0babf04cb9a61c2141a77e069a81a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 10 Aug 2013 14:54:40 +0200 Subject: Fix non-FaceAPI build (thanks dbaarda) --- CMakeLists.txt | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a517168..3731d7ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -508,15 +508,13 @@ endif() if(SDK_SM_FACEAPI_PATH) include_directories("${SDK_SM_FACEAPI_PATH}/include") -endif() -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 OR MINGW) AND SDK_SM_FACEAPI_PATH) + 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() 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) if(SDK_XPLANE) @@ -646,7 +644,7 @@ if(NOT SDK_FACEAPI_ONLY) endif() endif() -if(WIN32 AND NOT SDK_FACEAPI_ONLY) +if(SDK_SM_FACEAPI_PATH AND NOT SDK_FACEAPI_ONLY) install(TARGETS opentrack-tracker-faceapi RUNTIME DESTINATION . LIBRARY DESTINATION . @@ -660,13 +658,11 @@ if(MSVC) endif() if(WIN32 AND SDK_SM_FACEAPI_PATH) - if(MSVC80) - install(TARGETS opentrack-faceapi-wrapper - RUNTIME DESTINATION faceapi - LIBRARY DESTINATION faceapi - NAMELINK_SKIP - ) - endif() + install(TARGETS opentrack-faceapi-wrapper + RUNTIME DESTINATION faceapi + LIBRARY DESTINATION faceapi + NAMELINK_SKIP + ) install(FILES "${CMAKE_SOURCE_DIR}/bin/cleye.config" DESTINATION faceapi) install(FILES "${SDK_SM_FACEAPI_PATH}/bin/computation6.0.dll" -- cgit v1.2.3