CMake: integrate (optional) "dependencies" directory
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10978 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
3234653cea
commit
d606e7eab9
@ -36,16 +36,17 @@ endif()
|
|||||||
# Set include paths
|
# Set include paths
|
||||||
include_directories(${STK_SOURCE_DIR})
|
include_directories(${STK_SOURCE_DIR})
|
||||||
|
|
||||||
|
# With these variables set libraries in "dependencies" are found
|
||||||
|
set(ENV{PATH} ${PROJECT_SOURCE_DIR}/dependencies/include)
|
||||||
|
set(ENV{LIB} ${PROJECT_SOURCE_DIR}/dependencies/lib)
|
||||||
|
set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/dependencies)
|
||||||
|
|
||||||
# Irrlicht
|
# Irrlicht
|
||||||
find_package(Irrlicht 1.8 REQUIRED)
|
find_package(Irrlicht 1.8 REQUIRED)
|
||||||
include_directories(${IRRLICHT_INCLUDE_DIRS})
|
include_directories(${IRRLICHT_INCLUDE_DIRS})
|
||||||
|
|
||||||
# OpenAL
|
# OpenAL
|
||||||
if(MSVC)
|
find_package(OpenAL REQUIRED)
|
||||||
find_library(OPENAL_LIBRARY OpenAL32 REQUIRED PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
|
|
||||||
else()
|
|
||||||
find_package(OpenAL REQUIRED)
|
|
||||||
endif()
|
|
||||||
include_directories(${OPENAL_INCLUDE_DIR})
|
include_directories(${OPENAL_INCLUDE_DIR})
|
||||||
|
|
||||||
# OggVorbis
|
# OggVorbis
|
||||||
@ -53,13 +54,7 @@ find_package(OggVorbis REQUIRED)
|
|||||||
include_directories(${OGGVORBIS_INCLUDE_DIRS})
|
include_directories(${OGGVORBIS_INCLUDE_DIRS})
|
||||||
|
|
||||||
# CURL
|
# CURL
|
||||||
if(CYGWIN)
|
find_package(CURL REQUIRED)
|
||||||
find_package(CURL REQUIRED)
|
|
||||||
elseif(WIN32)
|
|
||||||
find_library(CURL_LIBRARIES curl libcurl_imp REQUIRED PATHS ${PROJECT_SOURCE_DIR}/dependencies/lib)
|
|
||||||
else()
|
|
||||||
find_package(CURL REQUIRED)
|
|
||||||
endif()
|
|
||||||
include_directories(${CURL_INCLUDE_DIRS})
|
include_directories(${CURL_INCLUDE_DIRS})
|
||||||
|
|
||||||
# Fribidi
|
# Fribidi
|
||||||
|
Loading…
Reference in New Issue
Block a user