[build] Simplify the CMake install

This commit is contained in:
Marko Viitanen 2022-06-06 12:52:21 +03:00
parent 51f7888ca7
commit be90897fd2

View file

@ -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})