Implementata compilazione release
@@ -1,11 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.28)
|
||||
project(AllReleases LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
# 1. Identifichiamo tutte le cartelle che rappresentano una release.
|
||||
# Usiamo il pattern che identifica le tue cartelle (es. FCG_VisualizzatoreCamminata-*)
|
||||
file(GLOB RELEASE_DIRS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "FCG_VisualizzatoreCamminata-*")
|
||||
|
||||
message(STATUS "Trovate ${#RELEASE_DIRS} release da compilare.")
|
||||
message(STATUS "Trovate ${RELEASE_DIRS} release da compilare.")
|
||||
|
||||
# 2. Cicliamo su ogni cartella trovata
|
||||
foreach(RELEASE_DIR ${RELEASE_DIRS})
|
||||
|
||||
@@ -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>)
|
||||
|
||||
@@ -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 "V7")
|
||||
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>)
|
||||
|
||||
@@ -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 "V8")
|
||||
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>)
|
||||
|
||||
@@ -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>)
|
||||
|
||||
@@ -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 "V10")
|
||||
file(GLOB_RECURSE METHODS_SRC "${METHODS_PATH}")
|
||||
add_executable(main${VERSION} ./src/Main.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>)
|
||||
|
||||
@@ -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 "V11")
|
||||
file(GLOB_RECURSE METHODS_SRC "${METHODS_PATH}")
|
||||
add_executable(main${VERSION} ./src/Main.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>)
|
||||
|
||||
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 11 KiB |