Luna/libui/CMakeLists.txt
apio 2ddec76061
All checks were successful
continuous-integration/drone/pr Build is passing
libui+wind: Move some static variables inside functions
2023-08-07 19:10:27 +02:00

18 lines
451 B
CMake

# The UI and graphics library for Luna.
file(GLOB HEADERS include/ui/*.h)
set(SOURCES
${HEADERS}
src/Canvas.cpp
src/Rect.cpp
src/Font.cpp
src/Image.cpp
)
add_library(ui ${SOURCES})
target_compile_options(ui PRIVATE ${COMMON_FLAGS} -fno-threadsafe-statics)
target_include_directories(ui PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include/)
target_include_directories(ui PUBLIC ${LUNA_BASE}/usr/include)
target_link_libraries(ui PUBLIC os)