-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
33 lines (25 loc) · 1.07 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cmake_minimum_required(VERSION 3.0.0)
project(InfiniteRechargeVision VERSION 0.1.0)
find_package(OpenCV REQUIRED)
## load in pkg-config support
find_package(PkgConfig)
## use pkg-config to get hints for 0mq locations
pkg_check_modules(PC_ZeroMQ QUIET zmq)
## use the hint from above to find where 'zmq.hpp' is located
find_path(ZeroMQ_INCLUDE_DIR
NAMES zmq.hpp
PATHS ${PC_ZeroMQ_INCLUDE_DIRS}
)
## use the hint from about to find the location of libzmq
find_library(ZeroMQ_LIBRARY
NAMES zmq
PATHS ${PC_ZeroMQ_LIBRARY_DIRS}
)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libs/include)
add_executable(InfiniteRechargeVision main.cpp Setup.cpp InfiniteRechargeTargetModel.cpp InfiniteRechargeVision.cpp InfiniteRechargeProcessor.cpp Target.cpp TargetFinder.cpp DataSender.cpp)
target_link_libraries(InfiniteRechargeVision ${OpenCV_LIBS} pthread zmq)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)