add to installs

This commit is contained in:
KristofferC 2021-12-19 14:40:55 +01:00 committed by nick black
parent 81d36891da
commit e94707ee28
2 changed files with 24 additions and 1 deletions

View File

@ -971,6 +971,10 @@ configure_file(tools/notcurses.pc.in
${CMAKE_CURRENT_BINARY_DIR}/notcurses.pc ${CMAKE_CURRENT_BINARY_DIR}/notcurses.pc
@ONLY @ONLY
) )
configure_file(tools/notcurses-ffi.pc.in
${CMAKE_CURRENT_BINARY_DIR}/notcurses-ffi.pc
@ONLY
)
configure_file(tools/notcurses++.pc.in configure_file(tools/notcurses++.pc.in
${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc ${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc
@ONLY @ONLY
@ -1039,6 +1043,11 @@ install(FILES
DESTINATION ${PKGCONFIG_DIR} DESTINATION ${PKGCONFIG_DIR}
) )
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/notcurses-ffi.pc
DESTINATION ${PKGCONFIG_DIR}
)
install(FILES install(FILES
${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc ${CMAKE_CURRENT_BINARY_DIR}/notcurses++.pc
DESTINATION ${PKGCONFIG_DIR} DESTINATION ${PKGCONFIG_DIR}
@ -1075,7 +1084,7 @@ endif()
endif() endif()
endif() # BUILD_EXECUTABLES endif() # BUILD_EXECUTABLES
LIST(APPEND INSTLIBS notcurses-core notcurses) LIST(APPEND INSTLIBS notcurses-core notcurses notcurses-ffi)
if(${USE_STATIC}) if(${USE_STATIC})
LIST(APPEND INSTLIBS notcurses-core-static notcurses-static) LIST(APPEND INSTLIBS notcurses-core-static notcurses-static)
endif() endif()

14
tools/notcurses-ffi.pc.in Normal file
View File

@ -0,0 +1,14 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
Name: @PROJECT_NAME@
Description: TUI library for modern terminal emulators (ffi support)
Version: @PROJECT_VERSION@
Requires: notcurses-ffi
Requires.private:
Libs: -L${libdir} -lnotcurses-ffi
Libs.private: -lstdc++
Cflags: -I${includedir}