cmake: Add options to enable/disable client/server targets.

This commit is contained in:
Mike Gilbert 2012-01-22 12:14:06 -05:00
parent 5a024802ca
commit 3c61b381c6

View File

@ -163,8 +163,16 @@ if(NOT WIN32)
add_subdirectory(channels) add_subdirectory(channels)
endif() endif()
add_subdirectory(client) option(ENABLE_CLIENT "Build client binaries" ON)
add_subdirectory(server) if(ENABLE_CLIENT)
add_subdirectory(client)
endif()
option(ENABLE_SERVER "Build server binaries" OFF)
if(ENABLE_SERVER)
add_subdirectory(server)
endif()
add_subdirectory(keymaps) add_subdirectory(keymaps)
# Source package # Source package