2022-08-03 05:56:57 -07:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
2023-02-26 05:32:37 -07:00
|
|
|
project(libtermkey C)
|
2018-04-01 18:32:22 -07:00
|
|
|
|
|
|
|
add_definitions(-D _CRT_SECURE_NO_WARNINGS)
|
|
|
|
add_definitions(-DHAVE_UNIBILIUM)
|
|
|
|
|
|
|
|
include_directories(${PROJECT_BINARY_DIR}/t)
|
|
|
|
include_directories(SYSTEM ${UNIBILIUM_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
add_library(termkey termkey.c driver-csi.c driver-ti.c)
|
|
|
|
set_target_properties(termkey PROPERTIES
|
|
|
|
PUBLIC_HEADER ${PROJECT_SOURCE_DIR}/termkey.h)
|
|
|
|
target_link_libraries(termkey ${UNIBILIUM_LIBRARIES})
|
|
|
|
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
install(TARGETS termkey
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
|
|
|
|
2022-10-21 02:47:27 -07:00
|
|
|
# vim: set ft=cmake:
|