Files
led-controller/fixture-driver/CMakeLists.txt
T
jimmyandClaude Haiku 5.5 edf35e9c71 Channel 11 defaults, ESP-NOW driver config and rig/desktop updates
Moves the controller, bridge and led-driver default ESP-NOW channel to 11 and
updates the led-driver and led-tool submodule pointers. Includes the rest of the
working tree: web UI, desktop and sim-controller changes, API and bridge code,
graphify output, and the .gitea and fixture-driver folders.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-21 01:19:02 +13:00

49 lines
1.9 KiB
CMake

# led-fixture: one led-driver per fixture of the controller's DMX bridge (main/bridge_dmx.c), built natively.
# The driver sources are led-driver/main's, unchanged; the platform is desktop/port's and sim-driver/src's shims,
# whose page hooks become the stdin/stdout pipe of src/main.cpp. Linux only.
# cmake -S fixture-driver -B build-fixture && cmake --build build-fixture
# The desktop build (desktop/CMakeLists.txt) builds it too, and installs it next to led-controller.
cmake_minimum_required(VERSION 3.16)
project(led_fixture C CXX)
set(FX_ROOT ${CMAKE_CURRENT_LIST_DIR}/..)
set(FX_DRIVER ${FX_ROOT}/led-driver/main)
set(FX_DESK ${FX_ROOT}/desktop)
set(FX_SIM ${FX_ROOT}/sim-driver)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 11)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
find_package(Threads REQUIRED)
add_executable(led-fixture
${FX_DRIVER}/patterns.cpp
${FX_DRIVER}/effects_a.cpp
${FX_DRIVER}/effects_b.cpp
${FX_DRIVER}/effects_rig.cpp
${FX_DRIVER}/effects_util.cpp
${FX_DRIVER}/beat_sync.cpp
${FX_DRIVER}/presets.cpp
${FX_DRIVER}/settings.cpp
${FX_DRIVER}/ctrl_msg.cpp
${FX_DRIVER}/espnow_link.cpp
${FX_DESK}/port/src/freertos.c
${FX_DESK}/third_party/cjson/cJSON.c
${FX_SIM}/src/sim_glue.c
${FX_SIM}/src/nvs_sim.cpp
${FX_SIM}/src/ws2812_sim.cpp
${FX_SIM}/src/espnow_sim.cpp
src/main.cpp)
target_include_directories(led-fixture PRIVATE
${FX_SIM}/src
${FX_SIM}/include
${FX_DESK}/port/include
${FX_DESK}/third_party/cjson
${FX_DRIVER})
target_compile_options(led-fixture PRIVATE "SHELL:-include ${FX_DESK}/port/include/sdkconfig.h"
-Wall -Wno-unused-function -Wno-missing-field-initializers
"$<$<COMPILE_LANGUAGE:CXX>:SHELL:-include ${FX_SIM}/include/sim_prelude.h>")
target_link_libraries(led-fixture PRIVATE Threads::Threads m)