From 19711d0fd0e2c181c3fe9df692b15f57390420d1 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Wed, 23 Nov 2016 11:55:10 -0200 Subject: [PATCH] Add knob to suppress building the nTox client --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbc87af5..74c25d7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -480,7 +480,8 @@ if(NOT WIN32 endif() endif() -if(NOT WIN32) +option(BUILD_NTOX "Build nTox client" ON) +if(NOT WIN32 AND BUILD_NTOX) add_c_executable(nTox testing/nTox.c) target_link_modules(nTox toxcore ${NCURSES_LIBRARIES}) endif()