-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
26 lines (18 loc) · 896 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
cmake_minimum_required(VERSION 3.12)
project(dreamgranada LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/common)
set(GRANADA_3RD_PARTY ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party)
add_subdirectory(3rd_party/glog glog)
add_subdirectory(3rd_party/fmt)
add_subdirectory(communicate)
add_subdirectory(utils)
file(GLOB HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp)
file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
add_library(dreamgranada
${HEADERS}
${SOURCES})
find_package(Threads REQUIRED)
target_include_directories(dreamgranada PUBLIC ${BOOST_ROOT_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include/ ${CMAKE_CURRENT_SOURCE_DIR}/common)
target_link_libraries(dreamgranada PUBLIC granada_comm granada_utils glog::glog fmt::fmt Threads::Threads)