From 3c61b381c6e011c5e48ae113e8a1b66fb5a6b933 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sun, 22 Jan 2012 12:14:06 -0500 Subject: [PATCH] cmake: Add options to enable/disable client/server targets. --- CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a051c1424..6c306080c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,8 +163,16 @@ if(NOT WIN32) add_subdirectory(channels) endif() -add_subdirectory(client) -add_subdirectory(server) +option(ENABLE_CLIENT "Build client binaries" ON) +if(ENABLE_CLIENT) + add_subdirectory(client) +endif() + +option(ENABLE_SERVER "Build server binaries" OFF) +if(ENABLE_SERVER) + add_subdirectory(server) +endif() + add_subdirectory(keymaps) # Source package