2016-09-27 22:01:08 +03:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
project(CMAKE_FORM)
|
2001-11-05 19:53:05 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
include_regular_expression("^.*$")
|
|
|
|
include_directories(${CURSES_INCLUDE_PATH} "${CMAKE_CURRENT_BINARY_DIR}")
|
2007-08-27 17:01:14 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
configure_file(cmFormConfigure.h.in "${CMAKE_CURRENT_BINARY_DIR}/cmFormConfigure.h")
|
2001-11-09 01:03:52 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set( FORM_SRCS
|
2001-11-05 19:53:05 +03:00
|
|
|
fld_arg.c
|
|
|
|
fld_attr.c
|
|
|
|
fld_current.c
|
|
|
|
fld_def.c
|
|
|
|
fld_dup.c
|
|
|
|
fld_ftchoice.c
|
|
|
|
fld_ftlink.c
|
|
|
|
fld_info.c
|
|
|
|
fld_just.c
|
|
|
|
fld_link.c
|
|
|
|
fld_max.c
|
|
|
|
fld_move.c
|
|
|
|
fld_newftyp.c
|
|
|
|
fld_opts.c
|
|
|
|
fld_pad.c
|
|
|
|
fld_page.c
|
|
|
|
fld_stat.c
|
|
|
|
fld_type.c
|
|
|
|
fld_user.c
|
|
|
|
frm_cursor.c
|
|
|
|
frm_data.c
|
|
|
|
frm_def.c
|
|
|
|
frm_driver.c
|
|
|
|
frm_hook.c
|
|
|
|
frm_opts.c
|
|
|
|
frm_page.c
|
|
|
|
frm_post.c
|
|
|
|
frm_req_name.c
|
|
|
|
frm_scale.c
|
|
|
|
frm_sub.c
|
|
|
|
frm_user.c
|
|
|
|
frm_win.c
|
|
|
|
fty_alnum.c
|
|
|
|
fty_alpha.c
|
|
|
|
fty_enum.c
|
|
|
|
fty_int.c
|
|
|
|
fty_ipv4.c
|
|
|
|
fty_num.c
|
|
|
|
fty_regex.c
|
2002-04-22 23:05:22 +04:00
|
|
|
)
|
2001-11-05 19:53:05 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
include_directories(${CMAKE_FORM_SOURCE_DIR})
|
|
|
|
add_library(cmForm ${FORM_SRCS} )
|
|
|
|
target_link_libraries(cmForm ${CURSES_LIBRARY})
|
|
|
|
if(CURSES_EXTRA_LIBRARY)
|
|
|
|
target_link_libraries(cmForm ${CURSES_EXTRA_LIBRARY})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|