Mercurial Hosting > traffic-intelligence
annotate CMakeLists.txt @ 364:a50a69e04c2a
script modification so that command line arguments take precedence over config file
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 12 Jul 2013 02:29:49 -0400 |
parents | 450dc0648aaa |
children | 2a4e9ef469e5 |
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 |
360
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
17 add_executable(feature-based-tracking |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
18 c/cvutils.cpp |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
19 c/feature-based-tracking.cpp |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
20 c/Motion.cpp |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
21 c/Parameters.cpp |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
22 c/utils.cpp |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
23 ) |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
24 |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
25 find_package(Boost REQUIRED program_options) |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
26 find_library(TrajectoryManagement_LIBRARY TrajectoryManagementAndAnalysis) |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
27 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
|
28 |
360
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
29 add_definitions( |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
30 -DUSE_OPENCV |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
31 ) |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
32 |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
33 include_directories( |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
34 ${PROJECT_SOURCE_DIR}/include |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
35 ${TrajectoryManagement_INCLUDE_DIR} |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
36 ) |
120
46b166523bf8
added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
37 |
360
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
38 target_link_libraries(feature-based-tracking |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
39 ${TrajectoryManagement_LIBRARY} |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
40 ${SQLite3_LIBS} |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
41 ${OpenCV_LIBS} |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
42 ${Boost_LIBRARIES} |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
43 ) |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
44 |
450dc0648aaa
Changes to CMakeLists.txt by Alexis Whilhelm
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
120
diff
changeset
|
45 install(TARGETS feature-based-tracking DESTINATION bin) |