Skip to content

Buildsystems

CMake

An Introduction to Modern CMake · Modern CMake

在项目根目录修改 CMakeLists.txt

cmake -S . -B build
cmake --build build
cmake_minimum_required(VERSION 3.8)

project(Calculator LANGUAGES CXX)

add_library(calclib STATIC src/calclib.cpp include/calc/lib.hpp)
target_include_directories(calclib PUBLIC include)
target_compile_features(calclib PUBLIC cxx_std_11)

add_executable(calc apps/calc.cpp)
target_link_libraries(calc PUBLIC calclib)

SCons

SCons: A software construction tool - SCons > Introduction to the buildsystem — Godot Engine (stable)

简介

使用

scons platform=list