From c31edcc12954d6b749f55f0462b4dc41bf958faf Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Sat, 28 Dec 2019 03:54:31 +0800 Subject: [PATCH] Fix CMake install process --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 20d7120..67f2e10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,5 +71,6 @@ IF(WIN32) TARGET_LINK_LIBRARIES(subconverter wsock32 ws2_32) ELSE() INCLUDE(GNUInstallDirs) - INSTALL(TARGETS subconverter DESTINATION ${CMAKE_INSTALL_BINDIR}) + INSTALL(TARGETS subconverter DESTINATION ${CMAKE_INSTALL_BINDIR}/subconverter) + INSTALL(DIRECTORY base/ DESTINATION ${CMAKE_INSTALL_BINDIR}/subconverter FILES_MATCHING PATTERN "*" PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ) ENDIF()