From c0936b93cb17b09865785bc0628348e4beadfa7e Mon Sep 17 00:00:00 2001 From: gesangtome Date: Sat, 23 Oct 2021 14:08:29 +0800 Subject: [PATCH] Add flag: CMAKE_INSTALL_PREFIX Define the installation path by specifying the value of CMAKE_INSTALL_PREFIX. For example: mkdir build cd build cmake ../ -DCMAKE_INSTALL_PREFIX=/home/xxx/xxx make install Finally these files will be installed in '/home/xxx/xxx', This is useful for some developers or packagers. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2588607e..9cf6df64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,5 +3,5 @@ project(cutefish-icons) include(FeatureSummary) -install(DIRECTORY Crule DESTINATION /usr/share/icons) -install(DIRECTORY Crule-dark DESTINATION /usr/share/icons) +install(DIRECTORY Crule DESTINATION ${CMAKE_INSTALL_PREFIX}/usr/share/icons) +install(DIRECTORY Crule-dark DESTINATION ${CMAKE_INSTALL_PREFIX}/usr/share/icons)