1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Only try to find the Max SDK if it was requested (and show the option to try to build it always)

This commit is contained in:
2014-04-11 23:07:24 -07:00
parent 9b46e8e739
commit 978edc1423
3 changed files with 5 additions and 8 deletions

View File

@ -52,7 +52,6 @@ if(WIN32)
find_package(Freetype) find_package(Freetype)
endif(WIN32) 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... find_package(Bink) #TODO: Find Bink, but don't require it if plPipeline isn't built...
# Or better yet, just eliminate bink altogether # Or better yet, just eliminate bink altogether
include(PrecompiledHeader) #Precompiled Header helper macros include(PrecompiledHeader) #Precompiled Header helper macros

View File

@ -8,7 +8,10 @@ if(PLASMA_BUILD_TOOLS)
endif() endif()
# Max Stuff goes below here... # Max Stuff goes below here...
option(3dsm_BUILD_PLUGIN "Do we want to build the 3ds Max plugin?" OFF)
if(3dsm_BUILD_PLUGIN) if(3dsm_BUILD_PLUGIN)
find_package(MaxSDK REQUIRED)
add_definitions(-DBUILDING_MAXPLUGIN)
add_definitions(-DMAXPLUGINCODE) add_definitions(-DMAXPLUGINCODE)
add_subdirectory(MaxComponent) add_subdirectory(MaxComponent)

View File

@ -87,9 +87,4 @@ if (3dsm_FOUND)
if(NOT 3dsm_FIND_QUIETLY) if(NOT 3dsm_FIND_QUIETLY)
message(STATUS "Found 3ds Max SDK: ${3dsm_PATH}") message(STATUS "Found 3ds Max SDK: ${3dsm_PATH}")
endif() endif()
option(3dsm_BUILD_PLUGIN "Do we want to build the 3ds Max plugin?" OFF)
if (3dsm_BUILD_PLUGIN)
add_definitions(-DBUILDING_MAXPLUGIN)
endif()
endif() endif()