forked from Mirrors/openclonk
Updated CMakeLists to work with precompiled dependencies
parent
c1d3fbea02
commit
8466407a60
|
@ -1,6 +1,8 @@
|
|||
cmake_minimum_required (VERSION 2.6)
|
||||
project (clonk CXX C)
|
||||
|
||||
list(APPEND CMAKE_PREFIX_PATH deps)
|
||||
|
||||
if(WIN32)
|
||||
SET(additional_clonk_sources engine/src/C4FileClasses.cpp engine/res/engine.rc engine/res/resource.h)
|
||||
endif()
|
||||
|
@ -488,6 +490,14 @@ endif()
|
|||
option(USE_SDL "Use SDL to create windows etc." ${INITIAL_USE_SDL_VALUE})
|
||||
if(WIN32)
|
||||
option(USE_DIRECTX "Enable DirectX support" ON)
|
||||
if(EXISTS $ENV{DXSDK_DIR})
|
||||
list(APPEND CMAKE_INCLUDE_PATH $ENV{DXSDK_DIR}/Include)
|
||||
if(${FIND_LIBRARY_USE_LIB64_PATHS})
|
||||
list(APPEND CMAKE_LIBRARY_PATH $ENV{DXSDK_DIR}/Lib/x64)
|
||||
else()
|
||||
list(APPEND CMAKE_LIBRARY_PATH $ENV{DXSDK_DIR}/Lib/x86)
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
SET(USE_DIRECTX OFF)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue