diff options
author | Brad King <brad.king@kitware.com> | 2017-08-21 13:00:07 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-08-21 13:00:09 (GMT) |
commit | fabb217502b027ccab3e44cae4ed7a718a6eea81 (patch) | |
tree | f377c20379c9a26f1858c63e1780bf9830fd0e0b /Source/CursesDialog/form/CMakeLists.txt | |
parent | d46300be899334e95aa196159337d4f78f33a488 (diff) | |
parent | ef978c1dea9fa3f2decadd5145c643d90af40f61 (diff) | |
download | CMake-fabb217502b027ccab3e44cae4ed7a718a6eea81.zip CMake-fabb217502b027ccab3e44cae4ed7a718a6eea81.tar.gz CMake-fabb217502b027ccab3e44cae4ed7a718a6eea81.tar.bz2 |
Merge topic 'bootstrap-target-commands'
ef978c1d CursesDialog: use target_include_directories for cmForm
7814d750 bootstrap: make target_* commands available
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1158
Diffstat (limited to 'Source/CursesDialog/form/CMakeLists.txt')
-rw-r--r-- | Source/CursesDialog/form/CMakeLists.txt | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/CursesDialog/form/CMakeLists.txt b/Source/CursesDialog/form/CMakeLists.txt index 0677043..b468f5b 100644 --- a/Source/CursesDialog/form/CMakeLists.txt +++ b/Source/CursesDialog/form/CMakeLists.txt @@ -3,12 +3,9 @@ project(CMAKE_FORM) -include_regular_expression("^.*$") -include_directories(${CURSES_INCLUDE_PATH} "${CMAKE_CURRENT_BINARY_DIR}") - configure_file(cmFormConfigure.h.in "${CMAKE_CURRENT_BINARY_DIR}/cmFormConfigure.h") -set( FORM_SRCS +add_library(cmForm fld_arg.c fld_attr.c fld_current.c @@ -49,10 +46,16 @@ set( FORM_SRCS fty_num.c fty_regex.c ) - -include_directories(${CMAKE_FORM_SOURCE_DIR}) -add_library(cmForm ${FORM_SRCS} ) + +target_include_directories(cmForm + PUBLIC + ${CURSES_INCLUDE_PATH} + ${CMAKE_FORM_BINARY_DIR} + ${CMAKE_FORM_SOURCE_DIR} + ) + target_link_libraries(cmForm ${CURSES_LIBRARY}) + if(CURSES_EXTRA_LIBRARY) target_link_libraries(cmForm ${CURSES_EXTRA_LIBRARY}) endif() |