mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
26 lines
436 B
CMake
26 lines
436 B
CMake
cmake_minimum_required(VERSION 3.6)
|
|
project(fonts LANGUAGES C)
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(FONTS_PKGCONFIG REQUIRED
|
|
SDL2_ttf
|
|
fontconfig
|
|
)
|
|
|
|
add_library(fonts STATIC
|
|
src/sdl.c
|
|
)
|
|
|
|
target_link_libraries(fonts
|
|
${FONTS_PKGCONFIG_LIBRARIES}
|
|
)
|
|
|
|
target_include_directories(fonts
|
|
PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
$<INSTALL_INTERFACE:include>
|
|
PRIVATE
|
|
src
|
|
${FONTS_PKGCONFIG_INCLUDE_DIRS}
|
|
)
|