Browse Source

Add a tools meta-target

Michael Hansen 10 years ago
parent
commit
d93b5b9769
  1. 5
      CMakeLists.txt
  2. 18
      Sources/Plasma/Apps/CMakeLists.txt
  3. 13
      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(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)
find_package(MaxSDK REQUIRED)
add_definitions(-DBUILDING_MAXPLUGIN)

18
Sources/Plasma/Apps/CMakeLists.txt

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

13
Sources/Tools/CMakeLists.txt

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

Loading…
Cancel
Save