Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Source/CursesDialog/form/CMakeLists.txt
5020 views
1
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
# file LICENSE.rst or https://cmake.org/licensing for details.
3
4
project(CMAKE_FORM)
5
6
# Disable warnings to avoid changing 3rd party code.
7
if(CMAKE_C_COMPILER_ID MATCHES
8
"^(GNU|LCC|Clang|AppleClang|IBMClang|XLClang|XL|VisualAge|SunPro|HP|Intel|IntelLLVM|NVHPC)$")
9
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
10
elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
11
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
12
endif()
13
14
configure_file(cmFormConfigure.h.in cmFormConfigure.h)
15
16
add_library(cmForm
17
fld_arg.c
18
fld_attr.c
19
fld_current.c
20
fld_def.c
21
fld_dup.c
22
fld_ftchoice.c
23
fld_ftlink.c
24
fld_info.c
25
fld_just.c
26
fld_link.c
27
fld_max.c
28
fld_move.c
29
fld_newftyp.c
30
fld_opts.c
31
fld_pad.c
32
fld_page.c
33
fld_stat.c
34
fld_type.c
35
fld_user.c
36
frm_cursor.c
37
frm_data.c
38
frm_def.c
39
frm_driver.c
40
frm_hook.c
41
frm_opts.c
42
frm_page.c
43
frm_post.c
44
frm_req_name.c
45
frm_scale.c
46
frm_sub.c
47
frm_user.c
48
frm_win.c
49
fty_alnum.c
50
fty_alpha.c
51
fty_enum.c
52
fty_int.c
53
fty_ipv4.c
54
fty_num.c
55
fty_regex.c
56
)
57
58
target_include_directories(cmForm
59
PUBLIC
60
${CURSES_INCLUDE_PATH}
61
${CMAKE_FORM_BINARY_DIR}
62
${CMAKE_FORM_SOURCE_DIR}
63
)
64
65
target_link_libraries(cmForm ${CURSES_LIBRARY})
66
67
if(CURSES_EXTRA_LIBRARY)
68
target_link_libraries(cmForm ${CURSES_EXTRA_LIBRARY})
69
endif()
70
71