2018-10-09 16:20:29 +08:00
|
|
|
cmake_minimum_required(VERSION 3.4)
|
|
|
|
project(tinyfiledialogs C)
|
|
|
|
|
|
|
|
add_library(tinyfiledialogs tinyfiledialogs.c)
|
|
|
|
|
2021-08-03 07:31:29 +08:00
|
|
|
target_include_directories(tinyfiledialogs INTERFACE $<INSTALL_INTERFACE:include/tinyfiledialogs>)
|
|
|
|
|
2018-10-09 16:20:29 +08:00
|
|
|
install(
|
|
|
|
TARGETS tinyfiledialogs
|
2019-02-08 05:19:10 +08:00
|
|
|
EXPORT tinyfiledialogsConfig
|
|
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
|
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
)
|
|
|
|
install(
|
|
|
|
FILES tinyfiledialogs.h
|
|
|
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/include/tinyfiledialogs"
|
|
|
|
)
|
|
|
|
|
|
|
|
export(
|
|
|
|
TARGETS tinyfiledialogs
|
|
|
|
NAMESPACE tinyfiledialogs::
|
|
|
|
FILE "${CMAKE_CURRENT_BINARY_DIR}/tinyfiledialogsConfig.cmake"
|
|
|
|
)
|
|
|
|
install(
|
|
|
|
EXPORT tinyfiledialogsConfig
|
|
|
|
NAMESPACE tinyfiledialogs::
|
2021-08-25 05:50:54 +08:00
|
|
|
DESTINATION share/tinyfiledialogs
|
2018-10-09 16:20:29 +08:00
|
|
|
)
|