diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-18 10:11:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-18 10:11:40 +0200 |
commit | e70cb063503100f8241b6b1b7cc75944afb62fe6 (patch) | |
tree | b735aeb98b8b04e17260f5dcda97895eb6bbde02 | |
parent | 9babeca6d528a4571170a5e90d08e2f2de4ba994 (diff) |
cmake: install module stuff in ./modules/ on win32
-rw-r--r-- | cmake/opentrack-hier.cmake | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/cmake/opentrack-hier.cmake b/cmake/opentrack-hier.cmake index 86a25730..ee2d0bbf 100644 --- a/cmake/opentrack-hier.cmake +++ b/cmake/opentrack-hier.cmake @@ -1,16 +1,26 @@ -if(WIN32 OR APPLE OR CYGWIN)
+if(APPLE)
set(opentrack-hier-pfx ".")
set(opentrack-hier-path "/")
- set(opentrack-hier-doc ".")
+ set(opentrack-hier-doc "/")
set(opentrack-hier-str RUNTIME DESTINATION . LIBRARY DESTINATION .)
+ set(opentrack-doc-pfx ".")
+elseif(WIN32)
+ set(opentrack-hier-pfx "./modules")
+ set(opentrack-hier-path "/modules/")
+ set(opentrack-hier-doc "/doc/")
+ set(opentrack-doc-pfx "./doc")
+ set(opentrack-hier-str RUNTIME DESTINATION ./modules/ LIBRARY DESTINATION ./modules/)
else()
set(opentrack-hier-pfx "libexec/opentrack")
set(opentrack-hier-path "/../libexec/opentrack/")
- set(opentrack-hier-doc "share/doc/opentrack")
+ set(opentrack-hier-doc "/share/doc/opentrack/")
+ set(opentrack-doc-pfx "./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-contrib-pfx "${opentrack-doc-pfx}/contrib")
+
set(opentrack-binary-suffix "")
if(APPLE)
set(opentrack-binary-suffix ".bin")
|