aboutsummaryrefslogtreecommitdiff
path: root/src/common/CMakeLists.txt
blob: e0d3547be6555485bb407da1e26f9244aed01a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set(CRU_BASE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/common)
add_library(cru_base STATIC 
	Logger.cpp
	StringUtil.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}/FormatOStream.hpp
	${CRU_BASE_INCLUDE_DIR}/Logger.hpp
	${CRU_BASE_INCLUDE_DIR}/PreConfig.hpp
	${CRU_BASE_INCLUDE_DIR}/SelfResolvable.hpp
	${CRU_BASE_INCLUDE_DIR}/StringUtil.hpp
)
target_include_directories(cru_base PUBLIC ${CRU_INCLUDE_DIR})
target_compile_definitions(cru_base PUBLIC $<$<CONFIG:Debug>:CRU_DEBUG>)

find_package(Microsoft.GSL CONFIG REQUIRED)
find_package(fmt CONFIG REQUIRED)
target_link_libraries(cru_base PUBLIC Microsoft.GSL::GSL fmt::fmt)