Răsfoiți Sursa

Introduce CMake "Release" profile

Patrick-Christopher Mattulat 1 săptămână în urmă
părinte
comite
72ab595d7f
2 a modificat fișierele cu 8 adăugiri și 3 ștergeri
  1. 2 2
      CMakeLists.txt
  2. 6 1
      README.md

+ 2 - 2
CMakeLists.txt

@@ -1,8 +1,6 @@
 cmake_minimum_required(VERSION 3.28)
 project(ls-atlantis-engine VERSION 0.0.1 LANGUAGES CXX)
 
-set(CMAKE_CONFIGURATION_TYPES "Debug" CACHE STRING "Build configurations" FORCE)
-
 ################################
 # Compiler Settings
 ################################
@@ -18,6 +16,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)
 set(MODULE_NAME_CORE ls-atlantis-core)
 set(MODULE_NAME_INTERFACE ls-atlantis-interface)
 
+set(CMAKE_DEBUG_POSTFIX -d)
+
 include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
 
 ################################

+ 6 - 1
README.md

@@ -13,7 +13,12 @@ The following prerequisites need to be fulfilled in order to build this game eng
 conan install . --output-folder=cmake-build-debug --build=missing -s build_type=Debug -s compiler.cppstd=17
 conan install . --output-folder=cmake-build-release --build=missing -s build_type=Release -s compiler.cppstd=17
 ```
-4. To Do
+4. The following CMake-Options must be provided for the "Debug" & "Release" Profile:
+```shell
+-DCMAKE_CONFIGURATION_TYPES=Debug -DCMAKE_TOOLCHAIN_FILE=cmake-build-debug/conan_toolchain.cmake
+-DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_TOOLCHAIN_FILE=cmake-build-release/conan_toolchain.cmake
+```
+5. For the CMake Default Toolchain use __Generator__ Visual Studio for each CMake profile.
 
 ## Modules