aboutsummaryrefslogtreecommitdiff
path: root/src/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r--src/common/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 73ad9456..cfd5be15 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -1,5 +1,5 @@
set(CRU_BASE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/common)
-add_library(cru_base STATIC
+add_library(cru_base SHARED
Logger.cpp
StringUtil.cpp
)
@@ -15,6 +15,13 @@ target_sources(cru_base PUBLIC
)
target_include_directories(cru_base PUBLIC ${CRU_INCLUDE_DIR})
target_compile_definitions(cru_base PUBLIC $<$<CONFIG:Debug>:CRU_DEBUG>)
+target_compile_definitions(cru_base PRIVATE CRU_BASE_EXPORT_API)
+
+if (WIN32)
+ target_compile_definitions(cru_base PUBLIC CRU_PLATFORM_WINDOWS)
+else()
+ target_compile_definitions(cru_base PUBLIC CRU_PLATFORM_UNIX)
+endif()
find_package(Microsoft.GSL CONFIG REQUIRED)
find_package(fmt CONFIG REQUIRED)