2026-05-02 12:52:32 +01:00
|
|
|
cmake_minimum_required(VERSION 3.31)
|
|
|
|
|
project(bshell C)
|
|
|
|
|
|
2026-05-07 10:52:00 +01:00
|
|
|
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 ()
|
|
|
|
|
|
2026-05-30 21:08:39 +01:00
|
|
|
if (NOT DEFINED bshell_verbose)
|
|
|
|
|
set(bshell_verbose 0)
|
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
set(required_fx_assemblies fx.runtime fx.collections)
|
|
|
|
|
|
|
|
|
|
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)
|
2026-05-30 21:08:39 +01:00
|
|
|
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
|
|
|
|
|
OUTPUT_VARIABLE bshell_version)
|
|
|
|
|
message(STATUS "B Shell version: ${bshell_version}")
|
|
|
|
|
|
2026-05-25 10:33:29 +01:00
|
|
|
add_subdirectory(bshell)
|
|
|
|
|
add_subdirectory(bshell.runtime)
|
|
|
|
|
add_subdirectory(bshell.core)
|