mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-25 20:27:31 +08:00
82adc3b410
Instead of putting the archive as: - <lib_dir>/ftxui/libcomponent.a - <lib_dir>/ftxui/libdom.a - <lib_dir>/ftxui/libscreen.a Use: - <lib_dir>/libftxui-component.a - <lib_dir>/libftxui-dom.a - <lib_dir>/libftxui-screen.a This fixes an issue users have with VCPKG. See: https://github.com/microsoft/vcpkg/issues/16327#issuecomment-868942370
30 lines
865 B
CMake
30 lines
865 B
CMake
include(GNUInstallDirs)
|
|
install(TARGETS screen dom component
|
|
EXPORT ftxui-export
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
)
|
|
|
|
install(DIRECTORY include/ftxui DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
|
|
|
include(CMakePackageConfigHelpers)
|
|
configure_package_config_file(ftxui-config.cmake.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/ftxui-config.cmake
|
|
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/ftxui/cmake
|
|
PATH_VARS CMAKE_INSTALL_INCLUDEDIR
|
|
)
|
|
write_basic_package_version_file(
|
|
ftxui-config-version.cmake
|
|
VERSION ${PACKAGE_VERSION}
|
|
COMPATIBILITY AnyNewerVersion
|
|
)
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ftxui-config.cmake
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ftxui
|
|
)
|
|
install(EXPORT ftxui-export
|
|
FILE ftxui-config-version.cmake
|
|
NAMESPACE ftxui::
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ftxui
|
|
)
|