summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-02 11:07:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-02 13:11:04 +0100
commit93197c83cae3f3da5fb3f3ba55a7909336079a44 (patch)
treeaa2a386c6a1a5554779e8aa6fc7e689bac548306 /editor
parent9a0ac7c7fd06a60f0e61b88828eaa59c0ee30fdd (diff)
cmake: try to fix ci link error
Diffstat (limited to 'editor')
-rw-r--r--editor/CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/editor/CMakeLists.txt b/editor/CMakeLists.txt
index f1455e32..cb57e6e1 100644
--- a/editor/CMakeLists.txt
+++ b/editor/CMakeLists.txt
@@ -9,8 +9,8 @@ else()
set_property(SOURCE "${res}" APPEND PROPERTY COMPILE_OPTIONS "-w")
endif()
-add_library(${self}_o STATIC "${sources}")
-target_link_libraries(${self}_o PUBLIC MagnumIntegration::ImGui fmt::fmt nlohmann_json::nlohmann_json)
+add_executable(${self} "${res}" "${sources}")
+target_link_libraries(${self} PRIVATE MagnumIntegration::ImGui fmt::fmt nlohmann_json::nlohmann_json)
if(NOT SDL2_INCLUDE_DIRS)
if(NOT TARGET SDL2::SDL2)
@@ -19,10 +19,9 @@ if(NOT SDL2_INCLUDE_DIRS)
get_target_property(SDL2_INCLUDE_DIRS SDL2::SDL2 INTERFACE_INCLUDE_DIRECTORIES)
endif()
endif()
-target_include_directories(${self}_o SYSTEM PRIVATE "${SDL2_INCLUDE_DIRS}")
+target_include_directories(${self} SYSTEM PRIVATE "${SDL2_INCLUDE_DIRS}")
-add_executable(${self} "${res}")
-target_link_libraries(${self} PUBLIC ${self}_o floormat-main floormat-loader floormat-serialize)
+target_link_libraries(${self} PRIVATE floormat-main floormat-serialize floormat-draw floormat)
if(WIN32)
target_sources(${self} PRIVATE "../main/floormat.rc")