-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (27 loc) · 926 Bytes
/
CMakeLists.txt
File metadata and controls
37 lines (27 loc) · 926 Bytes
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
34
35
36
37
cmake_minimum_required(VERSION 3.18)
project(FLIR-Stream LANGUAGES CXX CUDA)
set(CMAKE_CUDA_STANDARD 17)
set(CMAKE_CUDA_ARCHITECTURES 72)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
message(STATUS "CMake is in Debug mode — enabling CUDA debug flags (-G -g -O0)")
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -G -g -O0")
endif()
find_package(OpenCV REQUIRED)
add_subdirectory(spinnaker_stream)
add_subdirectory(camera)
add_subdirectory(cuda)
add_subdirectory(sensor)
add_subdirectory(motion)
add_executable(flir_stream main.cpp)
target_link_directories(flir_stream
PUBLIC
/opt/spinnaker/lib
)
target_include_directories(flir_stream
PUBLIC
${OpenCV_INCLUDE_DIRS}
)
target_link_libraries(flir_stream ${OpenCV_LIBS} spinnaker_stream sensor cuda camera Spinnaker motion)