forked from Team5593/pixy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
27 lines (19 loc) · 849 Bytes
/
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
cmake_minimum_required (VERSION 2.8)
project (hello_pixy CXX)
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake" )
# Add sources here... #
add_executable (hello_pixy hello_pixy.cpp)
# libpixyusb should always come before libboost and libusb #
target_link_libraries (hello_pixy pixyusb)
find_package ( libpixyusb REQUIRED )
find_package ( libusb-1.0 REQUIRED )
find_package ( Boost 1.49 COMPONENTS thread system chrono REQUIRED)
target_link_libraries (hello_pixy ${Boost_LIBRARIES})
target_link_libraries (hello_pixy ${LIBUSB_1_LIBRARY})
file(STRINGS "cmake/VERSION" LIBPIXY_VERSION)
add_definitions(-D__LIBPIXY_VERSION__="${LIBPIXY_VERSION}")
include_directories (src
include
../../common
${Boost_INCLUDE_DIR}
${LIBUSB_1_INCLUDE_DIRS})