diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-06 07:37:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-06 12:07:48 +0200 |
commit | 069ebb6212aa096adb1ded0823ac4194db9b0d03 (patch) | |
tree | a31c1026a6a0349e7867713ca85e83e8ff79b1be /cmake/opentrack-hier.cmake | |
parent | 56e9f634d5dd4122278a8f1c5f8e9fe39ed3652e (diff) |
gui, api, csv: support hier(7) on Unix
This affects platforms such as FreeBSD, Cygwin or Linux.
Diffstat (limited to 'cmake/opentrack-hier.cmake')
-rw-r--r-- | cmake/opentrack-hier.cmake | 19 |
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()
|