From 29cf8b9ddf89a42d72ca1c0fbdc9fa93f0c5d189 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 13 Apr 2013 05:39:08 +0200 Subject: Remove Kalman, unmaintained and broken --- CMakeLists.txt | 43 +++++++------------------------------------ 1 file changed, 7 insertions(+), 36 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 36917f76..927e8aec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,7 @@ if(NOT SDK_FACEAPI_ONLY) if(WIN32 AND NOT CMAKE_COMPILER_IS_GNUCC) add_definitions(/D FTNOIR_FILTER_BASE_LIB /D FTNOIR_TRACKER_BASE_LIB /D FTNOIR_PROTOCOL_BASE_LIB) else(MSVC) - add_definitions(-DFTNOIR_FILTER_BASE_LIB -DFTNOIR_TRACKER_BASE_LIB -DFTNOIR_PROTOCOL_BASE_LIB) + add_definitions(-DFTNOIR_FILTER_BASE_LIB -DFTNOIR_TRACKER_BASE_LIB -DFTNOIR_PROTOCOL_BASE_LIB -D_CRT_SECURE_NO_WARNINGS) endif(WIN32 AND NOT CMAKE_COMPILER_IS_GNUCC) if(NOT WIN32) @@ -139,14 +139,6 @@ if(NOT SDK_FACEAPI_ONLY) QT4_WRAP_UI(ftnoir-filter-accela-uih ${ftnoir-filter-accela-ui}) QT4_ADD_RESOURCES(ftnoir-filter-accela-rcc ${ftnoir-filter-accela-rc}) - file(GLOB ftnoir-filter-kalman-c "ftnoir_filter_kalman/*.cpp") - file(GLOB ftnoir-filter-kalman-h "ftnoir_filter_kalman/*.h") - QT4_WRAP_CPP(ftnoir-filter-kalman-moc ${ftnoir-filter-kalman-h}) - file(GLOB ftnoir-filter-kalman-ui "ftnoir_filter_kalman/*.ui") - file(GLOB ftnoir-filter-kalman-rc "ftnoir_filter_kalman/*.qrc") - QT4_WRAP_UI(ftnoir-filter-kalman-uih ${ftnoir-filter-kalman-ui}) - QT4_ADD_RESOURCES(ftnoir-kalman-accela-rcc ${ftnoir-filter-kalman-rc}) - file(GLOB ftnoir-filter-ewma-c "ftnoir_filter_ewma2/*.cpp") file(GLOB ftnoir-filter-ewma-h "ftnoir_filter_ewma2/*.h") QT4_WRAP_CPP(ftnoir-filter-ewma-moc ${ftnoir-filter-ewma-h}) @@ -309,23 +301,6 @@ endif() PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/posix-version-script.txt") endif() - if(OpenCV_FOUND) - include_directories(${OPENCV_INCLUDE_DIRS}) - include_directories("${OpenCV_DIR}/include") - include_directories("${OpenCV_CONFIG_PATH}/include") - add_library(ftnoir-filter-kalman SHARED ${ftnoir-filter-kalman-c} ${ftnoir-filter-kalman-moc} ${ftnoir-filter-kalman-uih} ${ftnoir-filter-kalman-rcc}) - target_link_libraries(ftnoir-filter-kalman ${MY_QT_LIBS} ${OpenCV_LIBS}) - if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC) - SET_TARGET_PROPERTIES(ftnoir-filter-kalman - PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/posix-version-script.txt") - endif() - if(WIN32) - SET(STATIC_EXT "lib") - else() - SET(STATIC_EXT "a") - endif() - endif() - add_library(ftnoir-filter-ewma SHARED ${ftnoir-filter-ewma-uih} ${ftnoir-filter-ewma-c} ${ftnoir-filter-ewma-moc} ${ftnoir-filter-ewma-rcc}) target_link_libraries(ftnoir-filter-ewma ${MY_QT_LIBS}) @@ -409,6 +384,12 @@ endif() "${CMAKE_SOURCE_DIR}/dinput/dxguid.lib" "${CMAKE_SOURCE_DIR}/dinput/strmiids.lib") endif() + + if(OpenCV_FOUND) + include_directories(${OPENCV_INCLUDE_DIRS}) + include_directories("${OpenCV_DIR}/include") + include_directories("${OpenCV_CONFIG_PATH}/include") + endif() if(OpenCV_FOUND) add_library(ftnoir-tracker-pt SHARED ${ftnoir-tracker-pt-c} ${ftnoir-tracker-pt-moc} ${ftnoir-tracker-pt-uih} ${ftnoir-tracker-pt-rcc}) @@ -496,16 +477,6 @@ if(NOT SDK_FACEAPI_ONLY) NAMELINK_SKIP ) - if(OpenCV_FOUND) - install(TARGETS - ftnoir-tracker-pt - ftnoir-filter-kalman - 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") -- cgit v1.2.3