aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-12-24 14:20:39 +0100
committerAdrian Kummerlaender2015-12-24 14:20:39 +0100
commitb94b106f3de718893e0c1ce7a1c9a081c189aefb (patch)
tree97b7480661480784036bc43eb991db851ab4152f
parenta8db66ab7c34199222c520e6cad63d8de3d04190 (diff)
downloadchange-b94b106f3de718893e0c1ce7a1c9a081c189aefb.tar
change-b94b106f3de718893e0c1ce7a1c9a081c189aefb.tar.gz
change-b94b106f3de718893e0c1ce7a1c9a081c189aefb.tar.bz2
change-b94b106f3de718893e0c1ce7a1c9a081c189aefb.tar.lz
change-b94b106f3de718893e0c1ce7a1c9a081c189aefb.tar.xz
change-b94b106f3de718893e0c1ce7a1c9a081c189aefb.tar.zst
change-b94b106f3de718893e0c1ce7a1c9a081c189aefb.zip
Add installation rules to `CMakeLists.txt`
-rw-r--r--CMakeLists.txt14
-rwxr-xr-xchange2
2 files changed, 15 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c137942..f61200c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,3 +22,17 @@ target_link_libraries(
boost_system
boost_filesystem
)
+
+install(
+ PROGRAMS
+ change
+ DESTINATION
+ bin
+)
+
+install(
+ TARGETS
+ ChangeLog
+ LIBRARY DESTINATION
+ lib
+)
diff --git a/change b/change
index 04cae2f..93e1077 100755
--- a/change
+++ b/change
@@ -1,6 +1,6 @@
#!/usr/bin/bash
-export LD_PRELOAD=/usr/lib/libChangeLog.so
+export LD_PRELOAD=libChangeLog.so
export CHANGE_LOG_TARGET="/tmp/$(basename $0).$$.tmp"
eval "$1"