From fdf6c321c8af9fd54bdc865d2f6bb1d2bc1c8e84 Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Mon, 15 Jul 2024 18:43:28 +0200 Subject: [PATCH] Move install --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2741164..c701b01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,11 +174,6 @@ install(TARGETS ${PACKAGE} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) -install( - FILES "${SHAPELIB_PC}" - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig -) - # executables to be built and installed. if(BUILD_APPS) set(executables @@ -231,6 +226,9 @@ install(TARGETS ${executables} # Install header install(FILES shapefil.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) +# Install pkg-config file +install(FILES "${SHAPELIB_PC}" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + if(BUILD_TESTING) # Set up tests: