Build rosapps, rostests, wallpapers when their CMake variables are set instead of checking for directory existence.

By default, ReactOS will now build without any of these modules.
You can enable them using e.g. "configure -DENABLE_ROSTESTS=1".
This commit is contained in:
Colin Finck 2017-10-03 16:36:59 +02:00
parent b9cf2e37f3
commit 417e262dfc

View file

@ -1,13 +1,13 @@
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rostests/)
if(ENABLE_ROSTESTS)
add_subdirectory(rostests)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rosapps/)
if(ENABLE_ROSAPPS)
add_subdirectory(rosapps)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/wallpapers/)
if(ENABLE_WALLPAPERS)
add_subdirectory(wallpapers)
endif()