Implementata compilazione release
This commit is contained in:
@@ -40,12 +40,12 @@ 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 +58,4 @@ set(VERSION "V9")
|
||||
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>)
|
||||
|
||||
Reference in New Issue
Block a user