Refactor CMakeLists.txt for improved code organization and readability
This commit is contained in:
@@ -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)
|
||||
add_subdirectory(src)
|
||||
|
||||
@@ -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()
|
||||
endif()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user