view CMakeLists.txt @ 811:429bb43e8278 opencv3

switching the branches to correct names (opencv3.1 is old code previously updated to OpenCV3 and default is now updated to OpenCV 2.4.13
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 10 Jun 2016 15:44:37 -0400
parents 2a4e9ef469e5
children
line wrap: on
line source

CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )

FIND_PACKAGE(
	OpenCV REQUIRED
)

FIND_LIBRARY(
	SQLite3_LIBS sqlite3
)

#FIND_PACKAGE(TrajectoryManagement)

SET(
	CMAKE_CXX_FLAGS "-g -Wall"
)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)

add_executable(feature-based-tracking
	c/cvutils.cpp
	c/feature-based-tracking.cpp
	c/Motion.cpp
	c/Parameters.cpp
	c/utils.cpp
	c/InputFrameListModule.cpp
	c/InputVideoFileModule.cpp
	)

find_package(Boost REQUIRED program_options filesystem system)
find_library(TrajectoryManagement_LIBRARY TrajectoryManagementAndAnalysis)
find_path(TrajectoryManagement_INCLUDE_DIR src/Trajectory.h)

add_definitions(
	-DUSE_OPENCV
	)

include_directories(
	${PROJECT_SOURCE_DIR}/include
	${TrajectoryManagement_INCLUDE_DIR}
	)

target_link_libraries(feature-based-tracking
	${TrajectoryManagement_LIBRARY}
	${SQLite3_LIBS}
	${OpenCV_LIBS}
	${Boost_LIBRARIES}
	)

install(TARGETS feature-based-tracking DESTINATION bin)