annotate samples/CMakeLists-nonfunctional.txt @ 1208:a07e455baaa6

merged
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 26 Apr 2023 18:33:46 -0400
parents 5852a3cdd455
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
120
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
1 CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
2
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
3 FIND_PACKAGE(
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
4 OpenCV REQUIRED
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
5 )
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
6
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
7 FIND_LIBRARY(
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
8 SQLite3_LIBS sqlite3
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
9 )
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
10
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
11 #FIND_PACKAGE(TrajectoryManagement)
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
12
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
13 SET(
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
14 CMAKE_CXX_FLAGS "-g -Wall"
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
15 )
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
16
459
2a4e9ef469e5 fixed the CMakeLists.txt
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 360
diff changeset
17 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
2a4e9ef469e5 fixed the CMakeLists.txt
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 360
diff changeset
18
360
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
19 add_executable(feature-based-tracking
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
20 c/cvutils.cpp
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
21 c/feature-based-tracking.cpp
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
22 c/Motion.cpp
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
23 c/Parameters.cpp
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
24 c/utils.cpp
459
2a4e9ef469e5 fixed the CMakeLists.txt
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 360
diff changeset
25 c/InputFrameListModule.cpp
2a4e9ef469e5 fixed the CMakeLists.txt
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 360
diff changeset
26 c/InputVideoFileModule.cpp
360
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
27 )
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
28
459
2a4e9ef469e5 fixed the CMakeLists.txt
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 360
diff changeset
29 find_package(Boost REQUIRED program_options filesystem system)
360
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
30 find_library(TrajectoryManagement_LIBRARY TrajectoryManagementAndAnalysis)
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
31 find_path(TrajectoryManagement_INCLUDE_DIR src/Trajectory.h)
120
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
32
360
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
33 add_definitions(
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
34 -DUSE_OPENCV
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
35 )
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
36
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
37 include_directories(
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
38 ${PROJECT_SOURCE_DIR}/include
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
39 ${TrajectoryManagement_INCLUDE_DIR}
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
40 )
120
46b166523bf8 added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff changeset
41
360
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
42 target_link_libraries(feature-based-tracking
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
43 ${TrajectoryManagement_LIBRARY}
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
44 ${SQLite3_LIBS}
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
45 ${OpenCV_LIBS}
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
46 ${Boost_LIBRARIES}
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
47 )
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
48
450dc0648aaa Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents: 120
diff changeset
49 install(TARGETS feature-based-tracking DESTINATION bin)