Browse Source

Semi-hack to CMake to ignore DirectX on Linux.

Darryl Pogue 13 years ago
parent
commit
de9d463563
  1. 8
      CMakeLists.txt
  2. 2
      Sources/Plasma/FeatureLib/pfSurface/CMakeLists.txt
  3. 4
      Sources/Plasma/PubUtilLib/plAudio/CMakeLists.txt
  4. 4
      Sources/Plasma/PubUtilLib/plAudioCore/CMakeLists.txt
  5. 4
      Sources/Plasma/PubUtilLib/plInputCore/CMakeLists.txt
  6. 4
      Sources/Plasma/PubUtilLib/plPipeline/CMakeLists.txt

8
CMakeLists.txt

@ -10,13 +10,17 @@ find_package(OpenAL REQUIRED)
find_package(PythonLibs REQUIRED)
find_package(EXPAT REQUIRED)
find_package(ZLIB REQUIRED)
find_package(PhysX REQUIRED) #TODO: Not required if we aren't building the client
find_package(PNG REQUIRED)
find_package(Ogg REQUIRED) #TODO: Not required if we aren't building the client
find_package(Vorbis REQUIRED) #TODO: Not required if we aren't building the client
find_package(Speex REQUIRED) #TODO: Not required if we aren't building the client
find_package(DirectX REQUIRED)
find_package(CURL REQUIRED)
if(WIN32)
find_package(PhysX REQUIRED) #TODO: Not required if we aren't building the client
find_package(DirectX REQUIRED)
endif(WIN32)
find_package(MaxSDK) #TODO: Only find this if we are building PlasmaMax
find_package(Bink) #TODO: Find Bink, but don't require it if plPipeline isn't built...
# Or better yet, just eliminate bink altogether

2
Sources/Plasma/FeatureLib/pfSurface/CMakeLists.txt

@ -6,9 +6,9 @@ include_directories(../../PubUtilLib)
if(Bink_SDK_AVAILABLE)
include_directories(${Bink_INCLUDE_DIR})
endif()
include_directories(${DirectX_INCLUDE_DIR})
if(WIN32)
include_directories(${DirectX_INCLUDE_DIR})
add_definitions(-DWIN32)
endif(WIN32)

4
Sources/Plasma/PubUtilLib/plAudio/CMakeLists.txt

@ -3,7 +3,9 @@ include_directories("../../NucleusLib/inc")
include_directories("../../NucleusLib")
include_directories("../../PubUtilLib")
include_directories(${DirectX_INCLUDE_DIR})
if(WIN32)
include_directories(${DirectX_INCLUDE_DIR})
endif(WIN32)
include_directories(${OPENAL_INCLUDE_DIR})
include_directories(${Speex_INCLUDE_DIR})

4
Sources/Plasma/PubUtilLib/plAudioCore/CMakeLists.txt

@ -3,7 +3,9 @@ include_directories("../../NucleusLib/inc")
include_directories("../../NucleusLib")
include_directories("../../PubUtilLib")
include_directories(${DirectX_INCLUDE_DIR})
if(WIN32)
include_directories(${DirectX_INCLUDE_DIR})
endif(WIN32)
include_directories(${Ogg_INCLUDE_DIR})
include_directories(${Vorbis_INCLUDE_DIR})

4
Sources/Plasma/PubUtilLib/plInputCore/CMakeLists.txt

@ -3,7 +3,9 @@ include_directories("../../NucleusLib/inc")
include_directories("../../NucleusLib")
include_directories("../../PubUtilLib")
include_directories(${DirectX_INCLUDE_DIR})
if(WIN32)
include_directories(${DirectX_INCLUDE_DIR})
endif(WIN32)
include_directories(${OPENAL_INCLUDE_DIR})
set(plInputCore_SOURCES

4
Sources/Plasma/PubUtilLib/plPipeline/CMakeLists.txt

@ -7,7 +7,9 @@ include_directories("../../PubUtilLib")
if(Bink_SDK_AVAILABLE)
include_directories(${Bink_INCLUDE_DIR})
endif()
include_directories(${DirectX_INCLUDE_DIR})
if(WIN32)
include_directories(${DirectX_INCLUDE_DIR})
endif(WIN32)
set(plPipeline_SOURCES
hsG3DDeviceSelector.cpp

Loading…
Cancel
Save