2026-07-19 13:34:32 +01:00
|
|
|
cmake_minimum_required(VERSION 3.31)
|
|
|
|
|
project(xpcg C)
|
|
|
|
|
|
|
|
|
|
find_package(FX REQUIRED COMPONENTS
|
|
|
|
|
fx.runtime fx.collections fx.cmdline fx.serial fx.io fx.term)
|
|
|
|
|
|
2026-03-10 19:12:14 +00:00
|
|
|
file(GLOB sources
|
|
|
|
|
*.c *.h
|
|
|
|
|
backend/c-mpc/*.c backend/c-mpc/*.h)
|
|
|
|
|
|
|
|
|
|
add_executable(xpcg ${sources})
|
|
|
|
|
|
2026-05-30 10:12:28 +01:00
|
|
|
target_link_libraries(xpcg FX::Runtime FX::Collections FX::Cmdline FX::Io)
|
2026-07-19 13:34:32 +01:00
|
|
|
install(TARGETS xpcg)
|
|
|
|
|
|
|
|
|
|
set_target_properties(
|
|
|
|
|
xpcg
|
|
|
|
|
PROPERTIES
|
|
|
|
|
INSTALL_RPATH
|
|
|
|
|
"${CMAKE_INSTALL_RPATH};${CMAKE_INSTALL_PREFIX}/lib")
|