diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-12-19 17:25:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-19 17:25:10 +0100 |
| commit | 97ad5bc641d308da9e6a023c467245c953123121 (patch) | |
| tree | 4d0128f95bdb2b14a8ae0696152464b71085156b /CMakeLists.txt | |
| parent | 019a38b9553b903fbcd0dbafecb1a3d418ee05a9 (diff) | |
feat: Improved and fixed CMake.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 909e9a9..7fb7068 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,10 @@ # // ============================================================= // -# // nebuild +# // NeBuild # // Copyright (C) 2025, Amlal El Mahrouss, licensed under BSD-3 license. # // ============================================================= // # AMLALE: Update the CMake version, which requires a version that was too old. -cmake_minimum_required(VERSION 4.00) +cmake_minimum_required(VERSION 3.30) project(nebuild VERSION 0.1 LANGUAGES CXX) @@ -24,21 +24,12 @@ target_include_directories(nebuild PRIVATE ${CMAKE_SOURCE_DIR}/include ${CMAKE_S option(BUILD_WINDOWS "Produce a Windows executable name (nebuild.exe)" OFF) -# Append .exe when it's a Windows build (The Windows loader requires it) -if(BUILD_WINDOWS) - set_target_properties(nebuild PROPERTIES OUTPUT_NAME "nebuild.exe") -endif() - add_custom_target(build-nebuild COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target nebuild COMMENT "=> NeBuild built successfully for POSIX." ) -add_custom_target(build-nebuild-windows - COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target nebuild - COMMENT "=> NeBuild built successfully for Windows (configure with -DBUILD_WINDOWS=ON)." -) - message(STATUS "Sources: ${NEBUILD_SOURCES}") -message(STATUS "Include dirs: ${CMAKE_SOURCE_DIR}/src;${CMAKE_SOURCE_DIR}/vendor") -message(STATUS "To build for Windows-style executable: configure with -DBUILD_WINDOWS=ON") +message(STATUS "Include Dirs: ${CMAKE_SOURCE_DIR}/src;${CMAKE_SOURCE_DIR}/vendor") + +include(install_windows.cmake)
\ No newline at end of file |
