Files
bshell/CMakeLists.txt
T

37 lines
971 B
CMake
Raw 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-24 20:25:51 +01:00
if (NOT DEFINED bshell_interactive)
set(bshell_interactive 1)
endif ()
if (NOT DEFINED bshell_verbose)
set(bshell_verbose 0)
endif ()
if (NOT DEFINED bshell_enable_floating_point)
set(bshell_enable_floating_point 1)
endif ()
2026-06-13 13:50:14 +01:00
set(required_fx_assemblies fx.runtime fx.collections fx.io fx.diagnostics)
if (bshell_interactive)
set(required_fx_assemblies ${required_fx_assemblies} fx.term)
endif ()
2026-05-02 12:52:32 +01:00
find_package(Python COMPONENTS Interpreter REQUIRED)
find_package(FX REQUIRED COMPONENTS ${required_fx_assemblies})
2026-05-02 12:52:32 +01:00
execute_process(
COMMAND ${Python_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tools/build-id.py
--source-dir "${CMAKE_CURRENT_SOURCE_DIR}"
2026-05-02 12:52:32 +01:00
OUTPUT_VARIABLE bshell_version)
message(STATUS "B Shell version: ${bshell_version}")
add_subdirectory(bshell)
add_subdirectory(bshell.runtime)
add_subdirectory(bshell.core)