From be90897fd2cbebf73289ac1a3d9c96d74f63b2da Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Mon, 6 Jun 2022 12:52:21 +0300 Subject: [PATCH] [build] Simplify the CMake install --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index acd245d4..823526a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -231,12 +231,7 @@ source_group( "" FILES ${SOURCE_GROUP_TOPLEVEL}) install(FILES ${PROJECT_SOURCE_DIR}/src/uvg266.pc DESTINATION ${UVG266_INSTALL_LIBDIR}/pkgconfig) install(TARGETS uvg266-bin DESTINATION ${UVG266_INSTALL_BINDIR}) -install(TARGETS uvg266 DESTINATION ${UVG266_INSTALL_LIBDIR}) -if(BUILD_SHARED_LIBS) # Just add the lib to the bin directory for now - if(MSVC) - install(TARGETS uvg266 DESTINATION ${UVG266_INSTALL_BINDIR}) - endif() -endif() +install(TARGETS uvg266 ARCHIVE DESTINATION "${UVG266_INSTALL_LIBDIR}" LIBRARY DESTINATION "${UVG266_INSTALL_LIBDIR}" RUNTIME DESTINATION "${UVG266_INSTALL_BINDIR}") install(FILES ${PROJECT_SOURCE_DIR}/src/uvg266.h DESTINATION ${UVG266_INSTALL_INCLUDEDIR}) install(FILES ${PROJECT_SOURCE_DIR}/doc/uvg266.1 DESTINATION ${UVG266_INSTALL_MANDIR})