summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-01 19:55:00 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-01 20:32:13 +0100
commitf9c5ec11383d71504ae59c6084ab7b46c3832a17 (patch)
tree3f97b9bb56768531a8a847ca3b51a55f4bd1a211 /editor
parent03917e76108e3d45e73a93905ffc05423dd672df (diff)
cmake: allow more parallelization
Diffstat (limited to 'editor')
-rw-r--r--editor/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/CMakeLists.txt b/editor/CMakeLists.txt
index 30b6ce5a..38db2a04 100644
--- a/editor/CMakeLists.txt
+++ b/editor/CMakeLists.txt
@@ -9,10 +9,12 @@ else()
set_property(SOURCE "${res}" APPEND PROPERTY COMPILE_OPTIONS "-w")
endif()
-link_libraries(MagnumIntegration::ImGui fmt::fmt)
-link_libraries(floormat-main floormat-loader floormat-serialize)
+add_library(${self}_o STATIC "${sources}")
+target_link_libraries(${self}_o PUBLIC MagnumIntegration::ImGui SDL2::SDL2 fmt::fmt nlohmann_json::nlohmann_json)
+
+add_executable(${self} "${res}")
+target_link_libraries(${self} PUBLIC ${self}_o floormat-main floormat-loader floormat-serialize)
-add_executable(${self} "${sources}" "${res}")
if(WIN32)
target_sources(${self} PRIVATE "../main/floormat.rc")
endif()