Build rosapps, rostests, wallpapers when their CMake variables are set instead of...
authorColin Finck <colin@reactos.org>
Tue, 3 Oct 2017 14:36:59 +0000 (16:36 +0200)
committerColin Finck <colin@reactos.org>
Tue, 3 Oct 2017 14:36:59 +0000 (16:36 +0200)
By default, ReactOS will now build without any of these modules.
You can enable them using e.g. "configure -DENABLE_ROSTESTS=1".

modules/CMakeLists.txt

index 286d3e8..cafa4b3 100644 (file)
@@ -1,13 +1,13 @@
 
 
-if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rostests/)
+if(ENABLE_ROSTESTS)\r
     add_subdirectory(rostests)
 endif()
 
     add_subdirectory(rostests)
 endif()
 
-if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rosapps/)
+if(ENABLE_ROSAPPS)\r
     add_subdirectory(rosapps)
 endif()
 
     add_subdirectory(rosapps)
 endif()
 
-if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/wallpapers/)
+if(ENABLE_WALLPAPERS)\r
     add_subdirectory(wallpapers)
 endif()
 
     add_subdirectory(wallpapers)
 endif()