summaryrefslogtreecommitdiffhomepage
path: root/main/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'main/CMakeLists.txt')
-rw-r--r--main/CMakeLists.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index a84337cc..cafc5972 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -1,10 +1,17 @@
set(self floormat-main)
file(GLOB sources "*.cpp" CONFIGURE_ARGS)
-link_libraries(floormat-draw floormat)
-link_libraries(Magnum::Sdl2Application Corrade::Containers Magnum::GL Magnum::Trade fmt::fmt)
+add_library(${self}_o STATIC "${sources}")
+target_link_libraries(${self}_o PUBLIC
+ Magnum::Sdl2Application
+ Corrade::Containers
+ Magnum::GL
+ Magnum::Trade
+ fmt::fmt
+)
-add_library(${self} STATIC "${sources}")
+add_library(${self} STATIC dummy.cc)
+target_link_libraries(${self} PUBLIC ${self}_o floormat-draw floormat)
if(FLOORMAT_PRECOMPILED-HEADERS)
target_precompile_headers(${self} PRIVATE precomp.hpp)