aboutsummaryrefslogtreecommitdiff
path: root/src/common/CMakeLists.txt
blob: 6e621bf1549971bb834e2bc4b8212ebf30a47fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set(CRU_BASE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/common)
add_library(cru_base STATIC 
    logger.cpp
)
target_sources(cru_base PUBLIC
	${CRU_BASE_INCLUDE_DIR}/base.hpp
	${CRU_BASE_INCLUDE_DIR}/bitmask.hpp
	${CRU_BASE_INCLUDE_DIR}/event.hpp
	${CRU_BASE_INCLUDE_DIR}/format.hpp
	${CRU_BASE_INCLUDE_DIR}/logger.hpp
	${CRU_BASE_INCLUDE_DIR}/pre_config.hpp
	${CRU_BASE_INCLUDE_DIR}/self_resolvable.hpp
)
target_include_directories(cru_base PUBLIC ${CRU_INCLUDE_DIR})
target_compile_definitions(cru_base PUBLIC $<$<CONFIG:Debug>:CRU_DEBUG>)

find_path(GSL_INCLUDE_DIR NAMES gsl PATH_SUFFIXES ms-gsl)
target_include_directories(cru_base PUBLIC ${GSL_INCLUDE_DIR})