diff options
author | Brad King <brad.king@kitware.com> | 2006-02-08 15:13:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-08 15:13:13 (GMT) |
commit | 6fe45fe9c3348645a0fe145e1f32c487829cea64 (patch) | |
tree | 42b6cdc2fdf5eb5febc18587eb39d6a51601cb54 /CMakeLists.txt | |
parent | dd710c94827b981dbcf7d723303963403bac65ae (diff) | |
download | CMake-6fe45fe9c3348645a0fe145e1f32c487829cea64.zip CMake-6fe45fe9c3348645a0fe145e1f32c487829cea64.tar.gz CMake-6fe45fe9c3348645a0fe145e1f32c487829cea64.tar.bz2 |
ENH: Added option BUILD_CursesDialog if curses is found. This allows people to disable building the dialog even when curses is found.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a5d7575..613ceaf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,14 +106,21 @@ SET(CMAKE_XMLRPC_INCLUDES SET(CMAKE_XMLRPC_LIBRARIES "cmXMLRPC") IF (UNIX) - INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL) + FIND_PACKAGE(Curses QUIET) IF (CURSES_LIBRARY) - SUBDIRS(Source/CursesDialog/form) + OPTION(BUILD_CursesDialog "Build the CMake Curses Dialog ccmake" ON) ELSE (CURSES_LIBRARY) MESSAGE("Curses libraries were not found. Curses GUI for CMake will not be build.") + SET(BUILD_CursesDialog 0) ENDIF (CURSES_LIBRARY) +ELSE (UNIX) + SET(BUILD_CursesDialog 0) ENDIF (UNIX) +IF(BUILD_CursesDialog) + SUBDIRS(Source/CursesDialog/form) +ENDIF(BUILD_CursesDialog) + SUBDIRS(Source Modules Templates Utilities) ENABLE_TESTING() |