aboutsummaryrefslogtreecommitdiff
path: root/src/win/CMakeLists.txt
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-05-27 00:54:58 +0800
committercrupest <crupest@outlook.com>2019-05-27 00:54:58 +0800
commit3a3d0bdaaf932f6ca17f2de3447c989127bc143a (patch)
tree358b9ea6cd6dd8eedd8bc915b98a1f27d0c2dff7 /src/win/CMakeLists.txt
parent9e2d63adb90c293f4bc2893b0de7655aea2ecc85 (diff)
downloadcru-3a3d0bdaaf932f6ca17f2de3447c989127bc143a.tar.gz
cru-3a3d0bdaaf932f6ca17f2de3447c989127bc143a.tar.bz2
cru-3a3d0bdaaf932f6ca17f2de3447c989127bc143a.zip
...
Diffstat (limited to 'src/win/CMakeLists.txt')
-rw-r--r--src/win/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/win/CMakeLists.txt b/src/win/CMakeLists.txt
index 1ca1f544..0076b3b2 100644
--- a/src/win/CMakeLists.txt
+++ b/src/win/CMakeLists.txt
@@ -1,10 +1,17 @@
+set(CRU_WIN_BASE_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/win/)
+
add_library(cru_win_base STATIC
debug.cpp
exception.cpp
string_util.cpp
)
+target_sources(cru_win_base PUBLIC
+ ${CRU_WIN_BASE_INCLUDE_DIR}/exception.hpp
+ ${CRU_WIN_BASE_INCLUDE_DIR}/win_pre_config.hpp
+)
target_compile_definitions(cru_win_base PUBLIC UNICODE _UNICODE) # use unicode
-target_include_directories(cru_win_base PUBLIC ${PROJECT_SOURCE_DIR}/include .)
+target_include_directories(cru_win_base PUBLIC .)
+target_link_libraries(cru_win_base PUBLIC cru_base)
add_subdirectory(graph)
add_subdirectory(native)