Files

28 lines
692 B
CMake
Raw Permalink Normal View History

2026-05-02 12:52:32 +01:00
cmake_minimum_required(VERSION 3.31)
project(bshell C)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
2026-05-02 12:52:32 +01:00
find_package(Python COMPONENTS Interpreter REQUIRED)
find_package(FX REQUIRED COMPONENTS
fx.runtime
fx.collections
fx.term)
2026-05-02 12:52:32 +01:00
execute_process(
COMMAND ${Python_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tools/build-id.py
OUTPUT_VARIABLE bshell_version)
file(GLOB_RECURSE bshell_sources
bshell/*.c
bshell/*.h)
message(STATUS "B Shell version: ${bshell_version}")
add_executable(bshell ${bshell_sources})
target_link_libraries(bshell FX::Runtime FX::Collections FX::Term)
2026-05-02 12:52:32 +01:00
target_compile_definitions(bshell PUBLIC
BSHELL_VERSION="${bshell_version}")