forked from andrepaim/ecosim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
20 lines (16 loc) · 1.28 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cmake_minimum_required(VERSION 3.10)
project(data-aquisition-system)
# set C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_THREAD_PREFER_PTHREAD ON)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
find_package(Boost 1.65.1 REQUIRED COMPONENTS system)
# include directories
include_directories(${Boost_INCLUDE_DIRS} src)
# target executable and its source files
add_executable(ecosim src/main.cpp)
# link Boost libraries to the target executable
target_link_libraries(ecosim ${Boost_LIBRARIES})
target_link_libraries(ecosim Threads::Threads)