summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-hier.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/opentrack-hier.cmake')
-rw-r--r--cmake/opentrack-hier.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/opentrack-hier.cmake b/cmake/opentrack-hier.cmake
new file mode 100644
index 00000000..8462531a
--- /dev/null
+++ b/cmake/opentrack-hier.cmake
@@ -0,0 +1,19 @@
+if(WIN32 OR APPLE OR CYGWIN)
+ set(opentrack-hier-pfx ".")
+ set(opentrack-hier-path "/./")
+ set(opentrack-hier-doc ".")
+ set(opentrack-hier-str RUNTIME DESTINATION . LIBRARY DESTINATION .)
+else()
+ set(opentrack-hier-pfx "libexec/opentrack")
+ set(opentrack-hier-path "/../libexec/opentrack/")
+ set(opentrack-hier-doc "share/doc/opentrack")
+ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${opentrack-hier-pfx}")
+ set(opentrack-hier-str ARCHIVE DESTINATION lib/opentrack LIBRARY DESTINATION ${opentrack-hier-pfx} RUNTIME DESTINATION bin)
+endif()
+
+set(opentrack-binary-suffix "")
+if(APPLE)
+ set(opentrack-binary-suffix ".bin")
+elseif(WIN32)
+ set(opentrack-binary-suffix ".exe")
+endif()