Merge branch 'master' of gitlab.2:f1x1t/whereami

This commit is contained in:
Andrei Astafev 2019-10-05 13:39:20 +03:00
commit 6706e7e4c5

View File

@ -50,6 +50,9 @@ if(BUILD_EXAMPLES)
endif() endif()
endif() endif()
install(FILES ${CMAKE_SOURCE_DIR}/src/whereami.h COMPONENT headers
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
if(PKG_CONFIG_FOUND) if(PKG_CONFIG_FOUND)
configure_file(${CMAKE_SOURCE_DIR}/pkgconfig/whereami.pc.in ${CMAKE_BINARY_DIR}/whereami.pc) configure_file(${CMAKE_SOURCE_DIR}/pkgconfig/whereami.pc.in ${CMAKE_BINARY_DIR}/whereami.pc)
install(FILES ${CMAKE_BINARY_DIR}/whereami.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) install(FILES ${CMAKE_BINARY_DIR}/whereami.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
@ -106,4 +109,7 @@ if(CMAKE_CXX_COMPILER)
configure_file(${CMAKE_SOURCE_DIR}/pkgconfig/whereamipp.pc.in ${CMAKE_BINARY_DIR}/whereamipp.pc) configure_file(${CMAKE_SOURCE_DIR}/pkgconfig/whereamipp.pc.in ${CMAKE_BINARY_DIR}/whereamipp.pc)
install(FILES ${CMAKE_BINARY_DIR}/whereamipp.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) install(FILES ${CMAKE_BINARY_DIR}/whereamipp.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif() endif()
install(FILES ${CMAKE_SOURCE_DIR}/src/whereami++.h COMPONENT headers
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
endif() endif()