mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-24 21:41:23 +00:00
Introduce CMAKE_INSTALL_PREFIX relative paths
configure style install dirs.
This commit is contained in:
parent
c4af9b0ce0
commit
e67598eeb5
2 changed files with 20 additions and 0 deletions
|
@ -223,6 +223,23 @@ if (WIN32)
|
|||
)
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
SET(bindir "${CMAKE_INSTALL_PREFIX}")
|
||||
SET(libdir "${CMAKE_INSTALL_PREFIX}")
|
||||
SET(datarootdir "${CMAKE_INSTALL_PREFIX}")
|
||||
SET(datadir "${datarootdir}")
|
||||
elseif (WIN32)
|
||||
SET(bindir "${CMAKE_INSTALL_PREFIX}")
|
||||
SET(libdir "${CMAKE_INSTALL_PREFIX}/lib")
|
||||
SET(datarootdir "${CMAKE_INSTALL_PREFIX}")
|
||||
SET(datadir "${datarootdir}")
|
||||
else()
|
||||
SET(bindir "${CMAKE_INSTALL_PREFIX}/bin")
|
||||
SET(libdir "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/dhewm3")
|
||||
SET(datarootdir "${CMAKE_INSTALL_PREFIX}/share")
|
||||
SET(datadir "${datarootdir}/dhewm3")
|
||||
endif()
|
||||
|
||||
configure_file(
|
||||
"${CMAKE_SOURCE_DIR}/config.h.in"
|
||||
"${CMAKE_BINARY_DIR}/config.h"
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
|
||||
#define BUILD_LIBRARY_SUFFIX "@CMAKE_SHARED_LIBRARY_SUFFIX@"
|
||||
|
||||
#define BUILD_LIBDIR "@libdir@"
|
||||
#define BUILD_DATADIR "@datadir@"
|
||||
|
||||
#cmakedefine HAVE_JPEG_MEM_SRC
|
||||
|
||||
#cmakedefine ID_ENABLE_CURL
|
||||
|
|
Loading…
Reference in a new issue