summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-26 22:14:34 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-26 22:14:34 +0200
commit57d3b7902a8f2a9785ca22b97a0c743795414077 (patch)
treed30b968062c16e35b59ed53b51d432836b95c4d9 /CMakeLists.txt
parentab23b322e575474856620c4bb92bb95aed2f3e69 (diff)
Hillcrest tracker, untested, waiting for confirmation
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt52
1 files changed, 51 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 47a48851..752e3964 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -103,6 +103,8 @@ if(NOT SDK_FACEAPI_ONLY)
endif()
endif(WIN32)
+ set(SDK_HILLCREST "" CACHE PATH "Path to libfreespace")
+
if(SDK_FSUIPC AND WIN32)
include_directories("${SDK_FSUIPC}")
link_directories("${SDK_FSUIPC}")
@@ -231,6 +233,14 @@ if(NOT SDK_FACEAPI_ONLY)
QT4_WRAP_UI(ftnoir-tracker-udp-uih ${ftnoir-tracker-udp-ui})
QT4_ADD_RESOURCES(ftnoir-tracker-udp-rcc ${ftnoir-tracker-udp-rc})
+ file(GLOB ftnoir-tracker-hillcrest-c "ftnoir_tracker_hillcrest/*.cpp")
+ file(GLOB ftnoir-tracker-hillcrest-h "ftnoir_tracker_hillcrest/*.h")
+ QT4_WRAP_CPP(ftnoir-tracker-hillcrest-moc ${ftnoir-tracker-hillcrest-h})
+ file(GLOB ftnoir-tracker-hillcrest-ui "ftnoir_tracker_hillcrest/*.ui")
+ file(GLOB ftnoir-tracker-hillcrest-rc "ftnoir_tracker_hillcrest/*.qrc")
+ QT4_WRAP_UI(ftnoir-tracker-hillcrest-uih ${ftnoir-tracker-hillcrest-ui})
+ QT4_ADD_RESOURCES(ftnoir-tracker-hillcrest-rcc ${ftnoir-tracker-hillcrest-rc})
+
file(GLOB ftnoir-tracker-faceapi-c "ftnoir_tracker_sm/*.cpp")
file(GLOB ftnoir-tracker-faceapi-h "ftnoir_tracker_sm/*.h")
QT4_WRAP_CPP(ftnoir-tracker-faceapi-moc ${ftnoir-tracker-faceapi-h})
@@ -413,6 +423,31 @@ endif()
PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/posix-version-script.txt")
endif()
+ if(SDK_HILLCREST)
+ include_directories("${SDK_HILLCREST}/include")
+ if(WIN32)
+ set(HILLCREST_LIBDIR ${SDK_HILLCREST}/lib/Release)
+ if(MSVC)
+ set(HILLCREST_LIBNAME libfreespace.lib)
+ else()
+ set(HILLCREST_LIBNAME libfreespace.a)
+ endif()
+ else()
+ link_directories(${SDK_HILLCREST}/lib)
+ endif()
+ add_library(ftnoir-tracker-hillcrest SHARED ${ftnoir-tracker-hillcrest-c} ${ftnoir-tracker-hillcrest-moc} ${ftnoir-tracker-hillcrest-uih} ${ftnoir-tracker-hillcrest-rcc})
+ if(WIN32)
+ set(HILLCREST_LIB "${HILLCREST_LIBDIR}/${HILLCREST_LIBNAME}")
+ else()
+ set(HILLCREST_LIB freespace)
+ endif()
+ target_link_libraries(ftnoir-tracker-hillcrest ${MY_QT_LIBS} ${HILLCREST_LIB})
+ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
+ SET_TARGET_PROPERTIES(ftnoir-tracker-hillcrest
+ PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/posix-version-script.txt")
+ endif()
+ endif()
+
add_executable(ftnoir ${ftnoir-bin-c} ${ftnoir-bin-moc} ${ftnoir-bin-uih} ${ftnoir-bin-rcc})
if(WIN32)
target_link_libraries(ftnoir ftnoir-pose-widget ftnoir-spline-widget ${MY_QT_LIBS} "${CMAKE_SOURCE_DIR}/dinput/dinput8.lib" "${CMAKE_SOURCE_DIR}/dinput/dxguid.lib" "${CMAKE_SOURCE_DIR}/dinput/strmiids.lib")
@@ -481,13 +516,22 @@ if(NOT SDK_FACEAPI_ONLY)
ftnoir-proto-fgfs
ftnoir-proto-udp
ftnoir-tracker-ht
- ftnoir-tracker-udp
+ ftnoir-tracker-udp
ftnoir
RUNTIME DESTINATION .
LIBRARY DESTINATION .
NAMELINK_SKIP
)
+ if(SDK_HILLCREST)
+ install(
+ TARGETS ftnoir-tracker-hillcrest
+ RUNTIME DESTINATION .
+ LIBRARY DESTINATION .
+ NAMELINK_SKIP
+ )
+ endif()
+
if(WIN32)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
file(GLOB mingw-libgcc-s "${SDK_MINGW_PATH}/bin/libgcc_s_*.dll")
@@ -564,6 +608,12 @@ if(WIN32 AND NOT SDK_FACEAPI_ONLY)
)
endif()
+if(SDK_HILLCREST)
+ if(WIN32)
+ install(FILES "${HILLCREST_LIBDIR}/libfreespace.dll" DESTINATION .)
+ endif()
+endif()
+
if(WIN32 AND SDK_SM_FACEAPI_PATH)
if(MSVC80)
install(TARGETS ftnoir-faceapi-wrapper