From a3d6a58cc898f88434e8901aacb579c819fac3e6 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 17 Jan 2025 21:49:46 -0600 Subject: [PATCH] [nostalgia/core/studio] Fix library cpp file ownership --- src/nostalgia/modules/core/src/studio/CMakeLists.txt | 2 -- .../modules/core/src/studio/paletteeditor/CMakeLists.txt | 4 ++++ .../modules/core/src/studio/tilesheeteditor/CMakeLists.txt | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/modules/core/src/studio/CMakeLists.txt b/src/nostalgia/modules/core/src/studio/CMakeLists.txt index df7bfadb..8c5e9588 100644 --- a/src/nostalgia/modules/core/src/studio/CMakeLists.txt +++ b/src/nostalgia/modules/core/src/studio/CMakeLists.txt @@ -3,7 +3,6 @@ add_library(NostalgiaCore-Studio) add_library( NostalgiaCore-Studio-ImGui studiomodule.cpp - tilesheeteditor/tilesheeteditor-imgui.cpp ) target_link_libraries( @@ -15,7 +14,6 @@ target_link_libraries( target_link_libraries( NostalgiaCore-Studio-ImGui PUBLIC NostalgiaCore-Studio - Studio ) install( diff --git a/src/nostalgia/modules/core/src/studio/paletteeditor/CMakeLists.txt b/src/nostalgia/modules/core/src/studio/paletteeditor/CMakeLists.txt index 862d43fe..245c5e9a 100644 --- a/src/nostalgia/modules/core/src/studio/paletteeditor/CMakeLists.txt +++ b/src/nostalgia/modules/core/src/studio/paletteeditor/CMakeLists.txt @@ -9,5 +9,9 @@ target_sources( commands/renamepagecommand.cpp commands/updatecolorcommand.cpp commands/updatecolorinfocommand.cpp +) + +target_sources( + NostalgiaCore-Studio-ImGui PRIVATE paletteeditor-imgui.cpp ) diff --git a/src/nostalgia/modules/core/src/studio/tilesheeteditor/CMakeLists.txt b/src/nostalgia/modules/core/src/studio/tilesheeteditor/CMakeLists.txt index bc92afd0..01d3e67d 100644 --- a/src/nostalgia/modules/core/src/studio/tilesheeteditor/CMakeLists.txt +++ b/src/nostalgia/modules/core/src/studio/tilesheeteditor/CMakeLists.txt @@ -6,6 +6,11 @@ target_sources( tilesheetpixels.cpp ) +target_sources( + NostalgiaCore-Studio-ImGui PRIVATE + tilesheeteditor-imgui.cpp +) + target_link_libraries( NostalgiaCore-Studio-ImGui PUBLIC lodepng