aboutsummaryrefslogtreecommitdiff
path: root/scripts/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-05-07 01:01:30 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-05-07 01:01:30 -0400
commite2470a89c3cd542b9c2a1e63ed0d78e0f39bed68 (patch)
treed3986f864073fc0c9a6ddf3df9373be2ca072a0d /scripts/CMakeLists.txt
parentf7e076b77c15de441f8e1008a30518c653c3974d (diff)
downloadspmc-e2470a89c3cd542b9c2a1e63ed0d78e0f39bed68.tar.gz
Add realpath.c (Darwin is so great)
Diffstat (limited to 'scripts/CMakeLists.txt')
-rw-r--r--scripts/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index a9dc74a..bfa6eb2 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -1,3 +1,19 @@
+configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/spmbuild
+ ${CMAKE_CURRENT_BINARY_DIR}
+ COPYONLY
+)
+
+if (APPLE)
+ add_executable(spm_realpath
+ realpath.c
+ )
+ install(
+ PROGRAMS spm_realpath
+ DESTINATION bin
+ )
+endif ()
+
install(
PROGRAMS spmbuild
DESTINATION bin