diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a215ed..4c1e501 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,21 +6,21 @@ project(ftp string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}" is_top_level) -option(LIBFTP_BUILD_APPS "Build the applications" ${is_top_level}) -option(LIBFTP_BUILD_EXAMPLES "Build the examples" ${is_top_level}) option(LIBFTP_BUILD_TESTS "Build the tests" ${is_top_level}) +option(LIBFTP_BUILD_EXAMPLES "Build the examples" ${is_top_level}) +option(LIBFTP_BUILD_CMDLINE_CLIENT "Build the command-line FTP client application" ${is_top_level}) add_subdirectory(src) -if (LIBFTP_BUILD_APPS) - add_subdirectory(apps) +if (LIBFTP_BUILD_TESTS) + enable_testing() + add_subdirectory(tests) endif() if (LIBFTP_BUILD_EXAMPLES) add_subdirectory(examples) endif() -if (LIBFTP_BUILD_TESTS) - enable_testing() - add_subdirectory(tests) +if (LIBFTP_BUILD_CMDLINE_CLIENT) + add_subdirectory(apps) endif() \ No newline at end of file