aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2e767ef..a29cc35 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,13 +1,3 @@
-function(target_link_libraries_system target)
- set(libs ${ARGN})
-
- foreach(lib ${libs})
- get_target_property(lib_include_dirs ${lib} INTERFACE_INCLUDE_DIRECTORIES)
- target_include_directories(${target} SYSTEM PRIVATE ${lib_include_dirs})
- target_link_libraries(${target} ${lib})
- endforeach(lib)
-endfunction(target_link_libraries_system)
-
file(GLOB SOURCES
bootstrap.cpp
util/color.cpp
@@ -64,6 +54,8 @@ target_include_directories(${PROJECT_NAME} PRIVATE .)
target_link_libraries(${PROJECT_NAME} dw)
+include(${CMAKE_SOURCE_DIR}/cmake/linking.cmake)
+
target_link_libraries_system(
${PROJECT_NAME}
fmt::fmt