summaryrefslogtreecommitdiffhomepage
path: root/loader/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'loader/CMakeLists.txt')
-rw-r--r--loader/CMakeLists.txt15
1 files changed, 9 insertions, 6 deletions
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
index 4bba63dc..8192d541 100644
--- a/loader/CMakeLists.txt
+++ b/loader/CMakeLists.txt
@@ -1,22 +1,25 @@
set(self floormat-loader)
file(GLOB sources "*.cpp" CONFIGURE_ARGS)
-add_library(${self} STATIC "${sources}")
+add_library(${self}_o STATIC "${sources}")
target_link_libraries(
- ${self} PUBLIC
- floormat-serialize
- floormat
+ ${self}_o PUBLIC
Magnum::Magnum
Magnum::Trade
+ nlohmann_json::nlohmann_json
)
if(WIN32 OR MAGNUM_BUILD_PLUGINS_STATIC)
- target_link_libraries(${self} PUBLIC
+ target_link_libraries(${self}_o PUBLIC
MagnumPlugins::StbImageImporter
Magnum::TgaImporter
)
endif()
if(WIN32)
- target_link_libraries(${self} PUBLIC ntdll)
+ target_link_libraries(${self}_o PUBLIC ntdll)
endif()
+
+add_library(${self} STATIC dummy.cc)
+target_link_libraries(${self} PUBLIC ${self}_o floormat-serialize floormat)
+
if(FLOORMAT_PRECOMPILED-HEADERS)
target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()