Path: blob/master/Source/CursesDialog/form/CMakeLists.txt
5020 views
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying1# file LICENSE.rst or https://cmake.org/licensing for details.23project(CMAKE_FORM)45# Disable warnings to avoid changing 3rd party code.6if(CMAKE_C_COMPILER_ID MATCHES7"^(GNU|LCC|Clang|AppleClang|IBMClang|XLClang|XL|VisualAge|SunPro|HP|Intel|IntelLLVM|NVHPC)$")8set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")9elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale")10set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")11endif()1213configure_file(cmFormConfigure.h.in cmFormConfigure.h)1415add_library(cmForm16fld_arg.c17fld_attr.c18fld_current.c19fld_def.c20fld_dup.c21fld_ftchoice.c22fld_ftlink.c23fld_info.c24fld_just.c25fld_link.c26fld_max.c27fld_move.c28fld_newftyp.c29fld_opts.c30fld_pad.c31fld_page.c32fld_stat.c33fld_type.c34fld_user.c35frm_cursor.c36frm_data.c37frm_def.c38frm_driver.c39frm_hook.c40frm_opts.c41frm_page.c42frm_post.c43frm_req_name.c44frm_scale.c45frm_sub.c46frm_user.c47frm_win.c48fty_alnum.c49fty_alpha.c50fty_enum.c51fty_int.c52fty_ipv4.c53fty_num.c54fty_regex.c55)5657target_include_directories(cmForm58PUBLIC59${CURSES_INCLUDE_PATH}60${CMAKE_FORM_BINARY_DIR}61${CMAKE_FORM_SOURCE_DIR}62)6364target_link_libraries(cmForm ${CURSES_LIBRARY})6566if(CURSES_EXTRA_LIBRARY)67target_link_libraries(cmForm ${CURSES_EXTRA_LIBRARY})68endif()697071