rdtk: build samples only if WITH_SAMPLE is enabled

This commit is contained in:
Bernhard Miklautz 2014-12-12 17:53:33 +01:00
parent b35dc849ee
commit ec0de7f6f6
1 changed files with 4 additions and 2 deletions

View File

@ -66,8 +66,10 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
add_subdirectory(include)
add_subdirectory(librdtk)
if(WITH_X11)
add_subdirectory(sample)
if(WITH_SAMPLE)
if(WITH_X11)
add_subdirectory(sample)
endif()
endif()
# Exporting