Browse Source

Add a tools meta-target

Michael Hansen 10 years ago
parent
commit
d93b5b9769
  1. 5
      CMakeLists.txt
  2. 10
      Sources/Plasma/Apps/CMakeLists.txt
  3. 11
      Sources/Tools/CMakeLists.txt

5
CMakeLists.txt

@ -108,6 +108,11 @@ option(PLASMA_BUILD_TOOLS "Do we want to build the Plasma tools?" ON)
option(PLASMA_BUILD_TESTS "Do we want to build the unit tests?" OFF) option(PLASMA_BUILD_TESTS "Do we want to build the unit tests?" OFF)
option(3dsm_BUILD_PLUGIN "Do we want to build the 3ds Max plugin?" OFF) option(3dsm_BUILD_PLUGIN "Do we want to build the 3ds Max plugin?" OFF)
if(PLASMA_BUILD_TOOLS)
# Custom dummy target for compiling all tools
add_custom_target(tools)
endif()
if(3dsm_BUILD_PLUGIN) if(3dsm_BUILD_PLUGIN)
find_package(MaxSDK REQUIRED) find_package(MaxSDK REQUIRED)
add_definitions(-DBUILDING_MAXPLUGIN) add_definitions(-DBUILDING_MAXPLUGIN)

10
Sources/Plasma/Apps/CMakeLists.txt

@ -1,9 +1,11 @@
if(WIN32)
add_subdirectory(plClient) add_subdirectory(plClient)
add_subdirectory(plCrashHandler) add_subdirectory(plCrashHandler)
if(PLASMA_BUILD_LAUNCHER) if(PLASMA_BUILD_LAUNCHER)
add_subdirectory(plUruLauncher) add_subdirectory(plUruLauncher)
endif() endif()
endif()
if(PLASMA_BUILD_TOOLS) if(PLASMA_BUILD_TOOLS)
add_subdirectory(plPythonPack) add_subdirectory(plPythonPack)
@ -11,4 +13,12 @@ if(PLASMA_BUILD_TOOLS)
add_subdirectory(plFileEncrypt) add_subdirectory(plFileEncrypt)
add_subdirectory(plPageInfo) add_subdirectory(plPageInfo)
add_subdirectory(plPageOptimizer) add_subdirectory(plPageOptimizer)
add_dependencies(tools
plPythonPack
plFileSecure
plFileEncrypt
plPageInfo
plPageOptimizer
)
endif() endif()

11
Sources/Tools/CMakeLists.txt

@ -4,9 +4,20 @@ if(PLASMA_BUILD_TOOLS)
add_subdirectory(plLocalizationEditor) add_subdirectory(plLocalizationEditor)
add_subdirectory(plResBrowser) add_subdirectory(plResBrowser)
add_dependencies(tools
plLocalizationEditor
plResBrowser
)
if(WIN32)
add_subdirectory(plShaderAssembler) add_subdirectory(plShaderAssembler)
add_dependencies(tools plShaderAssembler)
endif()
if(FREETYPE_FOUND) if(FREETYPE_FOUND)
add_subdirectory(plFontConverter) add_subdirectory(plFontConverter)
add_dependencies(tools plFontConverter)
endif() endif()
endif() endif()

Loading…
Cancel
Save