diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 19:55:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-01 20:32:13 +0100 |
commit | f9c5ec11383d71504ae59c6084ab7b46c3832a17 (patch) | |
tree | 3f97b9bb56768531a8a847ca3b51a55f4bd1a211 /loader | |
parent | 03917e76108e3d45e73a93905ffc05423dd672df (diff) |
cmake: allow more parallelization
Diffstat (limited to 'loader')
-rw-r--r-- | loader/CMakeLists.txt | 15 | ||||
-rw-r--r-- | loader/dummy.cc | 0 |
2 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() diff --git a/loader/dummy.cc b/loader/dummy.cc new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/loader/dummy.cc |