summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-08-10 14:54:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-08-10 14:54:40 +0200
commitf06faebe98d0babf04cb9a61c2141a77e069a81a (patch)
tree6df848ec538bb105f26b8510ec6ad0e132f152b8 /CMakeLists.txt
parentd2ae12cd96112e9244094c5ff9fb7197e37fb3bf (diff)
Fix non-FaceAPI build (thanks dbaarda)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt26
1 files 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"