mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
prepare NotcursesCoreConfig.cmake #1301
This commit is contained in:
parent
a5244632da
commit
9cf2925f47
@ -709,6 +709,11 @@ configure_package_config_file(tools/NotcursesConfig.cmake.in
|
||||
INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/notcurses/cmake
|
||||
)
|
||||
|
||||
configure_package_config_file(tools/NotcursesCoreConfig.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/NotcursesCoreConfig.cmake
|
||||
INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/notcurses/cmake
|
||||
)
|
||||
|
||||
write_basic_package_version_file(
|
||||
${CMAKE_CURRENT_BINARY_DIR}/NotcursesConfigVersion.cmake
|
||||
COMPATIBILITY SameMajorVersion
|
||||
|
9
tools/NotcursesCoreConfig.cmake.in
Normal file
9
tools/NotcursesCoreConfig.cmake.in
Normal file
@ -0,0 +1,9 @@
|
||||
@PACKAGE_INIT@
|
||||
set(Notcurses_DIR "@PACKAGE_SOME_INSTALL_DIR@")
|
||||
|
||||
# Compute paths
|
||||
get_filename_component(Notcurses_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
set(Notcurses_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
|
||||
set(Notcurses_LIBRARY_DIRS "@CONF_LIBRARY_DIRS@")
|
||||
|
||||
set(Notcurses_LIBRARIES -lnotcurses-core)
|
Loading…
Reference in New Issue
Block a user