-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
33 lines (27 loc) · 949 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
27
28
29
30
31
32
33
cmake_minimum_required(VERSION 3.7)
project(dasa-twain-server)
enable_testing()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
if (POLICY CMP0076)
cmake_policy(SET CMP0076 NEW)
endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(Boost_USE_STATIC_LIBS ON) # only find static libs
set(Boost_USE_DEBUG_LIBS OFF) # ignore debug libs and
set(Boost_USE_RELEASE_LIBS ON) # only find release libs
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.71.0 REQUIRED COMPONENTS date_time filesystem system)
if (MSVC OR MSYS OR MINGW)
set(APPLICATION_TYPE "Console" CACHE STRING "The generated application type: Console or Window")
else()
find_package(FreeImage REQUIRED)
endif()
add_subdirectory(deps)
add_subdirectory(src)
add_subdirectory(test)
if (MSVC OR MSYS OR MINGW)
add_subdirectory(watcher)
endif()