Hello everyone.

I'm trying to build my project, which have this code as dependency:
https://github.com/kylemcdonald/FaceTracker .

The project Is using the library OpenCV (version 3.1.0), but I need to
compile FaceTracker code using OpenCV version 2.4.0. CMake provides any
option that can help me with this?

Here is my CMakeLists.txt file:

cmake_minimum_required(VERSION 2.8)
project( Neuromarketing-RF )
find_package( Boost 1.58.0 REQUIRED COMPONENTS filesystem system )
include_directories( ${Boost_INCLUDE_DIRS} include src/external )
find_package( OpenCV REQUIRED )
file(GLOB FACETRACKER_HEADERS
"external/FaceTracker/include/FaceTracker/*.h")
file(GLOB FACETRACKER_SRC "external/FaceTracker/src/*/*.cc")
file(GLOB SOURCES "src/*cpp")
add_executable( Neuromarketing-RF ${SOURCES} ${FACETRACKER_SRC} )
target_link_libraries( Neuromarketing-RF ${OpenCV_LIBS} ${Boost_LIBRARIES} )
target_compile_features( Neuromarketing-RF PRIVATE cxx_range_for )
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to