summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-11-26 15:37:51 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-11-26 15:37:51 (GMT)
commit57a77fbe6934f13105f5c721ca6e5dec00002284 (patch)
tree60e1ae735e391d5d129796b2cd95001ee90f66f3 /Source
parent6b939536154421b5e18bc8e908b1bd5f7212a536 (diff)
parent6b045c3ba8be63fbb3cd8dc026e984184696730c (diff)
downloadCMake-57a77fbe6934f13105f5c721ca6e5dec00002284.zip
CMake-57a77fbe6934f13105f5c721ca6e5dec00002284.tar.gz
CMake-57a77fbe6934f13105f5c721ca6e5dec00002284.tar.bz2
Merge topic 'ccmake-system-form'
6b045c3b ccmake: Add CMAKE_USE_SYSTEM_FORM option to use libform instead of cmForm
Diffstat (limited to 'Source')
-rw-r--r--Source/CursesDialog/CMakeLists.txt18
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/CursesDialog/CMakeLists.txt b/Source/CursesDialog/CMakeLists.txt
index 548f5a5..7d4e88c 100644
--- a/Source/CursesDialog/CMakeLists.txt
+++ b/Source/CursesDialog/CMakeLists.txt
@@ -26,13 +26,25 @@ set( CURSES_SRCS
CursesDialog/ccmake
)
-include_directories(${CMake_SOURCE_DIR}/Source/CursesDialog/form
- ${CMake_BINARY_DIR}/Source/CursesDialog/form)
+if( NOT CMAKE_USE_SYSTEM_FORM )
+ include_directories(${CMake_SOURCE_DIR}/Source/CursesDialog/form
+ ${CMake_BINARY_DIR}/Source/CursesDialog/form)
+endif()
include_directories(${CURSES_INCLUDE_PATH})
add_executable(ccmake ${CURSES_SRCS} )
target_link_libraries(ccmake CMakeLib)
-target_link_libraries(ccmake cmForm)
+if(CMAKE_USE_SYSTEM_FORM)
+ target_link_libraries(ccmake
+ ${CURSES_FORM_LIBRARY}
+ ${CURSES_LIBRARY}
+ )
+ if(CURSES_EXTRA_LIBRARY)
+ target_link_libraries(ccmake ${CURSES_EXTRA_LIBRARY})
+ endif()
+else()
+ target_link_libraries(ccmake cmForm)
+endif()
install(TARGETS ccmake DESTINATION bin)