mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-27 14:42:23 +00:00
Add support for the doom3-libs repo
Single CMake variable "DOOM3LIBS" to point to the repo of binaries to make CMake find libraries from there.
This commit is contained in:
parent
b3085e03b4
commit
eb2ecfa22a
1 changed files with 13 additions and 0 deletions
|
@ -70,6 +70,19 @@ if (NOT CMAKE_BUILD_TYPE)
|
|||
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
|
||||
endif()
|
||||
|
||||
# precompiled libraries from the doom3-libs repo
|
||||
if (DOOM3LIBS)
|
||||
if (CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_FIND_ROOT_PATH ${DOOM3LIBS})
|
||||
else()
|
||||
set(ENV{CMAKE_PREFIX_PATH} ${DOOM3LIBS})
|
||||
endif()
|
||||
|
||||
# these are too stupid, give them a hint
|
||||
set(ENV{OPENALDIR} ${DOOM3LIBS})
|
||||
set(ENV{SDLDIR} ${DOOM3LIBS})
|
||||
endif()
|
||||
|
||||
# libs
|
||||
find_package(JPEG REQUIRED)
|
||||
include_directories(${JPEG_INCLUDE_DIR})
|
||||
|
|
Loading…
Reference in a new issue