-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·30 lines (23 loc) · 1 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
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(FastDonkey)
set( CMAKE_BUILD_TYPE Release )
SET("raspicam_DIR" "/usr/local/lib/cmake")
set (CMAKE_CXX_STANDARD 11)
set( CMAKE_BUILD_TYPE "Release" )
set( CMAKE_CXX_FLAGS "-std=c++11 -O3" )
find_package( Threads )
find_package(raspicam REQUIRED)
find_package(OpenCV REQUIRED PATHS "/usr/local/share")
find_package(Boost COMPONENTS system filesystem REQUIRED)
find_package( Threads )
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
include_directories(/home/pi/samplecodes/ncnn/build/install/include/)
link_directories(/home/pi/samplecodes/ncnn/build/install/lib/)
add_executable (fastdonkey main.cpp pwm.c mailbox.c cpuinfo.c)
add_executable (ncnn_test ncnn_test.cpp)
target_link_libraries (fastdonkey ncnn ${OpenCV_LIBS} ${Boost_LIBRARIES} ${raspicam_CV_LIBS} ${CMAKE_THREAD_LIBS_INIT} )
target_link_libraries(ncnn_test ncnn ${OpenCV_LIBS} )