2018-10-09 09:20:29 +01:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2019-10-07 19:35:13 +02:00
|
|
|
vcpkg_from_git(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
URL https://git.code.sf.net/p/tinyfiledialogs/code
|
2020-01-18 01:23:14 +01:00
|
|
|
REF f7789c57db4269495a6702625351a15e5ee17542
|
2018-10-09 09:20:29 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
2019-10-07 19:35:13 +02:00
|
|
|
|
2018-10-09 09:20:29 +01:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2019-02-07 21:19:10 +00:00
|
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2018-10-09 09:20:29 +01:00
|
|
|
|
2019-10-07 19:35:13 +02:00
|
|
|
file(READ ${CURRENT_PACKAGES_DIR}/include/tinyfiledialogs/tinyfiledialogs.h _contents)
|
2018-10-09 09:20:29 +01:00
|
|
|
string(SUBSTRING "${_contents}" 0 1024 _contents)
|
|
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/tinyfiledialogs/copyright "${_contents}")
|