2025-06-22 21:05:09 +02:00
|
|
|
cmake_minimum_required(VERSION 3.22)
|
2025-04-24 16:39:24 +02:00
|
|
|
|
|
|
|
# Set Project
|
2025-06-22 21:05:09 +02:00
|
|
|
project(palladium LANGUAGES C CXX VERSION 0.5.0)
|
|
|
|
|
|
|
|
# Required to add this Variable
|
|
|
|
set(PD_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
|
|
include(cmake/palladium.cmake)
|
2025-04-24 16:39:24 +02:00
|
|
|
|
|
|
|
option(PD_BUILD_TESTS "Sets if TestApp and TestBench get build" OFF)
|
|
|
|
option(PD_BUILD_SHARED "Build Shared Libraries" OFF)
|
2025-06-22 21:05:09 +02:00
|
|
|
option(PD_BUILD_TOOLS "Build Palladium Tools" OFF)
|
2025-04-24 16:39:24 +02:00
|
|
|
|
2025-06-22 21:05:09 +02:00
|
|
|
if(${PD_BUILD_TOOLS})
|
|
|
|
add_subdirectory(tools)
|
2025-04-24 16:39:24 +02:00
|
|
|
endif()
|
|
|
|
|
2025-06-22 21:05:09 +02:00
|
|
|
## Include Library Source
|
2025-04-24 16:39:24 +02:00
|
|
|
|
2025-06-22 21:05:09 +02:00
|
|
|
add_subdirectory(pd/drivers)
|
|
|
|
add_subdirectory(pd/core)
|
|
|
|
add_subdirectory(pd/image)
|
|
|
|
add_subdirectory(pd/external)
|
|
|
|
add_subdirectory(pd/lithium)
|
|
|
|
add_subdirectory(pd/ui7)
|
2025-04-24 16:39:24 +02:00
|
|
|
|
|
|
|
add_library(palladium INTERFACE)
|
|
|
|
target_link_libraries(palladium INTERFACE
|
2025-06-22 21:05:09 +02:00
|
|
|
pd-core pd-image pd-external pd-lithium pd-ui7 #pd-net
|
2025-04-24 16:39:24 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
add_dependencies(palladium
|
2025-06-22 21:05:09 +02:00
|
|
|
pd-drivers pd-core pd-image pd-external pd-lithium pd-ui7 #pd-net
|
2025-04-24 16:39:24 +02:00
|
|
|
)
|
|
|
|
|
2025-06-22 21:05:09 +02:00
|
|
|
install(DIRECTORY include DESTINATION ".")
|