Files
palladium/pd/lithium/CMakeLists.txt
T

28 lines
600 B
CMake
Raw Normal View History

2025-06-22 21:05:09 +02:00
cmake_minimum_required(VERSION 3.22)
2025-12-10 19:02:54 +01:00
project(pd-lithium LANGUAGES CXX VERSION 0.6.0)
2025-08-14 20:37:55 +02:00
option(PD_LI_INCLUDE_FONTS "Include Fonts" OFF)
2025-06-22 21:05:09 +02:00
set(SRC
2026-01-22 19:25:01 +01:00
source/command.cpp
2025-06-22 21:05:09 +02:00
source/drawlist.cpp
source/font.cpp
2025-08-14 20:37:55 +02:00
source/fonts.cpp
2025-06-22 21:05:09 +02:00
source/renderer.cpp
)
if(PD_BUILD_SHARED)
pd_add_lib(pd-lithium BUILD_SHARED TRUE SRC_FILES ${SRC})
else()
pd_add_lib(pd-lithium SRC_FILES ${SRC})
endif()
2025-08-14 20:37:55 +02:00
if(${PD_LI_INCLUDE_FONTS})
target_compile_definitions(pd-lithium PUBLIC
-DPD_LI_INCLUDE_FONTS=1
)
endif()
2025-06-22 21:05:09 +02:00
target_link_libraries(pd-lithium PUBLIC pd-core)