aboutsummaryrefslogtreecommitdiff
path: root/scripts/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-05-07 06:11:13 -0400
committerGitHub <noreply@github.com>2020-05-07 06:11:13 -0400
commit26db5dff18a40b402d20a572953870aab549c5f2 (patch)
tree539d6a9800f41efad4ed50b1864aae1e677ccded /scripts/CMakeLists.txt
parent6cc450d8ff714af09374f9bc07aea8bb05f74a5c (diff)
parentde47b0d91a79651088e76d64dc4b032146203cca (diff)
downloadspmc-26db5dff18a40b402d20a572953870aab549c5f2.tar.gz
Merge pull request #33 from jhunkeler/install-name-tool
Install name tool (etc...)
Diffstat (limited to 'scripts/CMakeLists.txt')
-rw-r--r--scripts/CMakeLists.txt18
1 files changed, 17 insertions, 1 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index a9dc74a..d24d32c 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -1,4 +1,20 @@
+configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/spmbuild
+ ${CMAKE_CURRENT_BINARY_DIR}
+ COPYONLY
+)
+
+if (APPLE)
+ add_executable(spm_realpath
+ realpath.c
+ )
+ install(
+ PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/spm_realpath
+ DESTINATION bin
+ )
+endif ()
+
install(
- PROGRAMS spmbuild
+ PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/spmbuild
DESTINATION bin
)