Skip to content

Commit

Permalink
A bit of Apps & Tools CMakeLists cleanup
Browse files Browse the repository at this point in the history
Co-Authored-By: dgelessus <[email protected]>
  • Loading branch information
dpogue and dgelessus committed Aug 6, 2024
1 parent a0b5324 commit 29d8e15
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 33 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ set(PLASMA_TOOLS_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/Sources/Tools")

add_subdirectory(Scripts)
add_subdirectory(Sources/Plasma)
add_subdirectory(Sources/Tools)

if(PLASMA_BUILD_TOOLS)
add_subdirectory(Sources/Tools)
endif()

if(PLASMA_BUILD_TESTS)
enable_testing()
Expand Down
17 changes: 6 additions & 11 deletions Sources/Plasma/Apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@ include_directories("${PLASMA_SOURCE_ROOT}/FeatureLib")
include_directories("${PLASMA_SOURCE_ROOT}/NucleusLib")
include_directories("${PLASMA_SOURCE_ROOT}/PubUtilLib")

if(WIN32)
if(PLASMA_BUILD_CLIENT)
add_subdirectory(plClient)
add_subdirectory(plCrashHandler)
endif()
if(PLASMA_BUILD_CLIENT)
add_subdirectory(plClient)

if(PLASMA_BUILD_LAUNCHER)
add_subdirectory(plUruLauncher)
if(WIN32)
add_subdirectory(plCrashHandler)
endif()
endif()

if(APPLE)
if(PLASMA_BUILD_CLIENT)
add_subdirectory(plClient)
endif()
if(PLASMA_BUILD_LAUNCHER AND WIN32)
add_subdirectory(plUruLauncher)
endif()

if(PLASMA_BUILD_TOOLS)
Expand Down
39 changes: 18 additions & 21 deletions Sources/Tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,30 @@ include_directories("${PLASMA_SOURCE_ROOT}/FeatureLib")
include_directories("${PLASMA_SOURCE_ROOT}/NucleusLib")
include_directories("${PLASMA_SOURCE_ROOT}/PubUtilLib")

if(PLASMA_BUILD_TOOLS)
add_subdirectory(plSystemInfo)
add_subdirectory(plFileEncrypt)
add_subdirectory(plFilePatcher)
add_subdirectory(plFileSecure)
add_subdirectory(plPageInfo)
add_subdirectory(plPageOptimizer)
add_subdirectory(plPythonPack)

if(Qt_FOUND)
add_subdirectory(plLocalizationEditor)
if(WIN32)
add_subdirectory(plNetLog)
endif()
add_subdirectory(plResBrowser)
endif()
add_subdirectory(plFileEncrypt)
add_subdirectory(plFilePatcher)
add_subdirectory(plFileSecure)
add_subdirectory(plLocalizationBenchmark)
add_subdirectory(plPageInfo)
add_subdirectory(plPageOptimizer)
add_subdirectory(plPythonPack)
add_subdirectory(plSystemInfo)

if(Qt_FOUND)
add_subdirectory(plLocalizationEditor)
if(WIN32)
add_subdirectory(plShaderAssembler)
add_subdirectory(plNetLog)
endif()
add_subdirectory(plResBrowser)
endif()

if(TARGET freetype AND Qt_FOUND)
add_subdirectory(plFontConverter)
endif()
if(WIN32)
add_subdirectory(plShaderAssembler)
endif()

add_subdirectory(plLocalizationBenchmark)
if(TARGET freetype AND Qt_FOUND)
add_subdirectory(plFontConverter)
endif()

# Max Stuff goes below here...
if(PLASMA_BUILD_MAX_PLUGIN)
Expand Down

0 comments on commit 29d8e15

Please sign in to comment.