Mercurial > hg > nsaunier > traffic-intelligence
comparison samples/CMakeLists-nonfunctional.txt @ 883:5852a3cdd455
added MacOS (Darwin) to Cpp Makefile and moved non-functional CMakeLists.txt
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 16 Mar 2017 15:06:14 -0400 |
| parents | CMakeLists.txt@2a4e9ef469e5 |
| children |
comparison
equal
deleted
inserted
replaced
| 882:4749b71aa7fb | 883:5852a3cdd455 |
|---|---|
| 1 CMAKE_MINIMUM_REQUIRED( VERSION 2.6 ) | |
| 2 | |
| 3 FIND_PACKAGE( | |
| 4 OpenCV REQUIRED | |
| 5 ) | |
| 6 | |
| 7 FIND_LIBRARY( | |
| 8 SQLite3_LIBS sqlite3 | |
| 9 ) | |
| 10 | |
| 11 #FIND_PACKAGE(TrajectoryManagement) | |
| 12 | |
| 13 SET( | |
| 14 CMAKE_CXX_FLAGS "-g -Wall" | |
| 15 ) | |
| 16 | |
| 17 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin) | |
| 18 | |
| 19 add_executable(feature-based-tracking | |
| 20 c/cvutils.cpp | |
| 21 c/feature-based-tracking.cpp | |
| 22 c/Motion.cpp | |
| 23 c/Parameters.cpp | |
| 24 c/utils.cpp | |
| 25 c/InputFrameListModule.cpp | |
| 26 c/InputVideoFileModule.cpp | |
| 27 ) | |
| 28 | |
| 29 find_package(Boost REQUIRED program_options filesystem system) | |
| 30 find_library(TrajectoryManagement_LIBRARY TrajectoryManagementAndAnalysis) | |
| 31 find_path(TrajectoryManagement_INCLUDE_DIR src/Trajectory.h) | |
| 32 | |
| 33 add_definitions( | |
| 34 -DUSE_OPENCV | |
| 35 ) | |
| 36 | |
| 37 include_directories( | |
| 38 ${PROJECT_SOURCE_DIR}/include | |
| 39 ${TrajectoryManagement_INCLUDE_DIR} | |
| 40 ) | |
| 41 | |
| 42 target_link_libraries(feature-based-tracking | |
| 43 ${TrajectoryManagement_LIBRARY} | |
| 44 ${SQLite3_LIBS} | |
| 45 ${OpenCV_LIBS} | |
| 46 ${Boost_LIBRARIES} | |
| 47 ) | |
| 48 | |
| 49 install(TARGETS feature-based-tracking DESTINATION bin) |
