aboutsummaryrefslogtreecommitdiff
path: root/src/common/CMakeLists.txt
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-17 22:18:01 +0800
committercrupest <crupest@outlook.com>2022-01-17 22:18:01 +0800
commit81f7d5faaaf79149070a901a4f299aee70c46379 (patch)
treef157088b35b2d61c22ed45179e2e6f0c766b9628 /src/common/CMakeLists.txt
parent87658408858dfad8c1fc85b048d46b9a6345580d (diff)
downloadcru-81f7d5faaaf79149070a901a4f299aee70c46379.tar.gz
cru-81f7d5faaaf79149070a901a4f299aee70c46379.tar.bz2
cru-81f7d5faaaf79149070a901a4f299aee70c46379.zip
...
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r--src/common/CMakeLists.txt21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index d1e3e35a..92ef3d4c 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -1,4 +1,3 @@
-set(CRU_BASE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/common)
add_library(cru_base SHARED
Base.cpp
Exception.cpp
@@ -9,32 +8,14 @@ add_library(cru_base SHARED
io/Stream.cpp
io/MemoryStream.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}/Exception.hpp
- ${CRU_BASE_INCLUDE_DIR}/Logger.hpp
- ${CRU_BASE_INCLUDE_DIR}/PreConfig.hpp
- ${CRU_BASE_INCLUDE_DIR}/PropertyTree.hpp
- ${CRU_BASE_INCLUDE_DIR}/Range.hpp
- ${CRU_BASE_INCLUDE_DIR}/SelfResolvable.hpp
- ${CRU_BASE_INCLUDE_DIR}/String.hpp
- ${CRU_BASE_INCLUDE_DIR}/StringUtil.hpp
- ${CRU_BASE_INCLUDE_DIR}/io/Stream.hpp
- ${CRU_BASE_INCLUDE_DIR}/io/MemoryStream.hpp
-)
+target_compile_definitions(cru_base PRIVATE CRU_BASE_EXPORT_API)
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 (UNIX)
target_sources(cru_base PRIVATE
ErrnoException.cpp
io/UnixFileStream.cpp
- PUBLIC
- ${CRU_BASE_INCLUDE_DIR}/ErrnoException.hpp
- ${CRU_BASE_INCLUDE_DIR}/io/UnixFileStream.hpp
)
endif()