Move ovni.pc.in into src/

This commit is contained in:
Rodrigo Arias 2023-07-05 13:13:53 +02:00
parent 4abd92e139
commit ee9111a1ec
3 changed files with 5 additions and 11 deletions

View File

@ -36,12 +36,6 @@ include(GNUInstallDirs)
set(OVNI_CONFIG_RELDIR "${CMAKE_INSTALL_DATADIR}/ovni") set(OVNI_CONFIG_RELDIR "${CMAKE_INSTALL_DATADIR}/ovni")
set(OVNI_CONFIG_DIR "${CMAKE_INSTALL_PREFIX}/${OVNI_CONFIG_RELDIR}") set(OVNI_CONFIG_DIR "${CMAKE_INSTALL_PREFIX}/${OVNI_CONFIG_RELDIR}")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/ovni.pc.in
${CMAKE_CURRENT_BINARY_DIR}/ovni.pc
@ONLY
)
include(CheckIPOSupported) include(CheckIPOSupported)
check_ipo_supported(RESULT ipo_available OUTPUT error LANGUAGES C) check_ipo_supported(RESULT ipo_available OUTPUT error LANGUAGES C)
@ -102,7 +96,3 @@ if(BUILD_TESTING)
endif() endif()
install(DIRECTORY cfg/ DESTINATION "${OVNI_CONFIG_RELDIR}") install(DIRECTORY cfg/ DESTINATION "${OVNI_CONFIG_RELDIR}")
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/ovni.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

View File

@ -20,5 +20,9 @@ target_include_directories(common-static PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
configure_file("config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h") configure_file("config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h")
include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR})
configure_file("ovni.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ovni.pc" @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ovni.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
add_subdirectory(rt) add_subdirectory(rt)
add_subdirectory(emu) add_subdirectory(emu)