From 0337483f853c5ff98d6f84cc201946cf018ce433 Mon Sep 17 00:00:00 2001 From: scawful Date: Sat, 31 Aug 2024 21:55:56 -0400 Subject: [PATCH] Refactor CMakeLists.txt for improved code organization and readability --- CMakeLists.txt | 6 +++--- src/CMakeLists.txt | 12 ++++++------ src/test/CMakeLists.txt | 1 - 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13a76311..eea47774 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ set(YAZE_INSTALL_LIB OFF) # libpng features in bitmap.cc add_definitions("-DYAZE_LIB_PNG=1") -# C++ Standard and CMake Specifications +# C++ Standard and CMake Specifications set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) @@ -39,11 +39,11 @@ include(cmake/absl.cmake) # SDL2 and PNG include(cmake/sdl2.cmake) -# Asar +# Asar include(cmake/asar.cmake) # ImGui include(cmake/imgui.cmake) # Project Files -add_subdirectory(src) \ No newline at end of file +add_subdirectory(src) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b266def2..0208e0b7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,7 +21,7 @@ if (YAZE_BUILD_EMU) include(app/emu/emu.cmake) endif() if (YAZE_BUILD_Z3ED) - include(cli/z3ed.cmake) + include(cli/z3ed.cmake) endif() if (YAZE_BUILD_PYTHON) include(py/yaze_py.cmake) @@ -35,9 +35,9 @@ if (UNIX) target_compile_definitions(yaze PRIVATE "stricmp=strcasecmp") endif() -if(MACOS) +if(MACOS) set(MACOSX_BUNDLE_ICON_FILE ${CMAKE_SOURCE_DIR}/yaze.ico) - set_target_properties(yaze + set_target_properties(yaze PROPERTIES BUNDLE True ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" @@ -46,7 +46,7 @@ if(MACOS) MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/cmake/yaze.plist.in ) elseif(UNIX) - set_target_properties(yaze + set_target_properties(yaze PROPERTIES BUNDLE True ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" @@ -105,11 +105,11 @@ if (YAZE_BUILD_LIB) ARCHIVE DESTINATION lib/static) install( - FILES + FILES yaze.h incl/sprite.h incl/snes_color.h incl/overworld.h DESTINATION include) endif() -endif() \ No newline at end of file +endif() diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 46293d1a..767a3234 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -10,7 +10,6 @@ add_executable( test/integration/test_editor.cc test/zelda3/overworld_test.cc test/zelda3/sprite_builder_test.cc - cli/command_handler.cc app/rom.cc app/core/common.cc app/core/labeling.cc