vcpkg/ports/tinyfiledialogs/CMakeLists.txt
Jack·Boos·Yu 667f041ea7
[vcpkg baseline][tinyfiledialogs] Change repo to sourceforge (#19287)
* [tinyfiledialogs] Change repo to sourceforge

* version

* Export INTERFACE_INCLUDE_DIRECTORIES

* Update versions/t-/tinyfiledialogs.json
2021-08-02 16:31:29 -07:00

30 lines
817 B
CMake

cmake_minimum_required(VERSION 3.4)
project(tinyfiledialogs C)
add_library(tinyfiledialogs tinyfiledialogs.c)
target_include_directories(tinyfiledialogs INTERFACE $<INSTALL_INTERFACE:include/tinyfiledialogs>)
install(
TARGETS tinyfiledialogs
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::
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/tinyfiledialogs"
)