ide just launches ./lightgui (builds only with --build via plain make; the redundant cmake re-build is gone). Delete widgets/layout/ (the standalone layout executable) and drop it from widgets/CMakeLists.txt. The file-based IPC header widgets/common/ipc.h is KEPT: it is still referenced by widgets/palette/main_palette.cpp, which is now dead code (ide no longer launches the palette process) but was not authorized for deletion in this step.
30 lines
1.1 KiB
CMake
30 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
project(LightGUI LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
# Test build: warnings as visible as possible (added by test agent).
|
|
add_compile_options(-Wall -Wextra)
|
|
|
|
# Build every component demo. Each component dir ships its own
|
|
# CMakeLists.txt and builds standalone (copy the dir out on its own and
|
|
# run cmake -S . -B build); the top level just adds each one as a
|
|
# subdirectory, one executable target per component.
|
|
file(GLOB COMPONENT_DIRS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/components"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/components/*")
|
|
foreach(dir IN LISTS COMPONENT_DIRS)
|
|
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/components/${dir}")
|
|
add_subdirectory("components/${dir}")
|
|
endif()
|
|
endforeach()
|
|
|
|
# Phase 2: selector palette (built with XFrame itself). The standalone
|
|
# layout window is gone (step 6): the canvas is embedded in the designer.
|
|
# NOTE: lightgui_palette is now dead code too — ./ide no longer launches
|
|
# it — kept only because this step authorises deleting the layout.
|
|
add_subdirectory(palette)
|