blob: 73bce94be12a9a860bce65270d6ba1ebb2be39eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# // ============================================================= //
# // NeBuild System.
# // Copyright (C) 2025-2026, Amlal El Mahrouss and Ne.org Author, licensed under BSD-3 license.
# // ============================================================= //
# AMLALE: Update the CMake version, which requires a version that was too old.
cmake_minimum_required(VERSION 3.30)
# Append .exe when it's a Windows build (The Windows loader requires it)
if(DEFINED BUILD_WINDOWS)
set_target_properties(nebuild PROPERTIES OUTPUT_NAME "nebuild.exe")
add_custom_target(build-nebuild-windows
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target nebuild
COMMENT "=> NeBuild successfully built for Windows (configure with -DBUILD_WINDOWS=ON)."
)
endif()
message(STATUS "To build for Windows-style executable: configure with -DBUILD_WINDOWS=ON")
|