Add knob to suppress building the nTox client

This commit is contained in:
Ismael Luceno 2016-11-23 11:55:10 -02:00
parent 15993d40a4
commit 19711d0fd0

View File

@ -480,7 +480,8 @@ if(NOT WIN32
endif() endif()
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) add_c_executable(nTox testing/nTox.c)
target_link_modules(nTox toxcore ${NCURSES_LIBRARIES}) target_link_modules(nTox toxcore ${NCURSES_LIBRARIES})
endif() endif()