cmake: Add options to enable/disable client/server targets.
This commit is contained in:
parent
5a024802ca
commit
3c61b381c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user