forked from OpenThermal/libseek-thermal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (28 loc) · 1.12 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
34
35
36
37
38
39
40
41
project(libseek-thermal)
cmake_minimum_required(VERSION 2.8)
# Request C++11 standard, using new CMake variables.
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_MODULE_PATH "${libseek-thermal_SOURCE_DIR}/cmake")
include(build_type)
set (WITH_ADDRESS_SANITIZER false CACHE BOOL "Enable address sanitizer")
set (WITH_DEBUG_VERBOSITY false CACHE BOOL "Enable verbose stdout messages")
set (default_build_type "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
if (NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra")
endif ()
if (WITH_DEBUG_VERBOSITY)
add_definitions(-DSEEK_DEBUG)
endif ()
message (STATUS "Build type: ${CMAKE_BUILD_TYPE}")
include (MacroLogFeature)
find_package (LibUSB)
macro_log_feature (LIBUSB_FOUND "libusb" "Required to communicate via USB" "https://libusb.info/" TRUE)
find_package (OpenCV REQUIRED)
macro_log_feature (OPENCV_FOUND "OpenCV" "Required to handle image processing" "https://opencv.org/" TRUE)
include_directories (${PROJECT_SOURCE_DIR}/win)
add_subdirectory (src)
#add_subdirectory (win)
add_subdirectory (examples)
macro_display_feature_log()