Implementata compilazione release

This commit is contained in:
2026-06-24 11:28:40 +02:00
parent d5dbcc6938
commit 5b8c16881e
88 changed files with 33077 additions and 2337 deletions
@@ -40,12 +40,13 @@ FetchContent_Declare(ImGui-SFML
SYSTEM)
FetchContent_MakeAvailable(ImGui-SFML)
add_library(common INTERFACE)
target_compile_features(common INTERFACE cxx_std_17)
target_compile_options(common INTERFACE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>: -Wall>
$<$<CXX_COMPILER_ID:MSVC>: /W4>
)
#add_library(common INTERFACE)
#target_compile_features(common INTERFACE cxx_std_17)
#target_compile_options(common INTERFACE
# $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>: -Wall>
# $<$<CXX_COMPILER_ID:MSVC>: /W4>
#)
# Fine aggiunta
@@ -58,4 +59,4 @@ set(VERSION "V6")
file(GLOB_RECURSE METHODS_SRC "${METHODS_PATH}")
add_executable(main${VERSION} ./src/testMain.cpp ${METHODS_SRC} )
target_link_libraries(main${VERSION} PRIVATE SFML::Graphics ImGui-SFML::ImGui-SFML common glm)
target_compile_definitions(main${VERSION} PRIVATE $<$<CONFIG:Debug>:DEBUG_MODE>)
target_compile_definitions(main${VERSION} PRIVATE $<$<CONFIG:Debug>:DEBUG_MODE>)