Merge branch 'release-3.31'
[kiteware-cmake.git] / Utilities / cmpdcurses / CMakeLists.txt
blob94ca6012b4c8e42fe9f9d0e37b12527872a47bfe
1 project(PDCurses C)
3 if(NOT WIN32)
4   message(FATAL_ERROR "PDCurses not (yet) supported on non-Windows platforms")
5 endif()
7 # Disable warnings to avoid changing 3rd party code.
8 if(CMAKE_C_COMPILER_ID MATCHES
9     "^(GNU|LCC|Clang|AppleClang|IBMClang|XLClang|XL|VisualAge|SunPro|HP|Intel|IntelLLVM|NVHPC)$")
10   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
11 elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
12   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
13 endif()
15 add_library(cmpdcurses STATIC
16   curses.h
17   curspriv.h
18   panel.h
20   common/acs437.h
21   common/acsuni.h
23   pdcurses/addch.c
24   pdcurses/addchstr.c
25   pdcurses/addstr.c
26   pdcurses/attr.c
27   pdcurses/beep.c
28   pdcurses/bkgd.c
29   pdcurses/border.c
30   pdcurses/clear.c
31   pdcurses/color.c
32   pdcurses/debug.c
33   pdcurses/delch.c
34   pdcurses/deleteln.c
35   pdcurses/getch.c
36   pdcurses/getstr.c
37   pdcurses/getyx.c
38   pdcurses/inch.c
39   pdcurses/inchstr.c
40   pdcurses/initscr.c
41   pdcurses/inopts.c
42   pdcurses/insch.c
43   pdcurses/insstr.c
44   pdcurses/instr.c
45   pdcurses/kernel.c
46   pdcurses/keyname.c
47   pdcurses/mouse.c
48   pdcurses/move.c
49   pdcurses/outopts.c
50   pdcurses/overlay.c
51   pdcurses/pad.c
52   pdcurses/panel.c
53   pdcurses/printw.c
54   pdcurses/refresh.c
55   pdcurses/scanw.c
56   pdcurses/scr_dump.c
57   pdcurses/scroll.c
58   pdcurses/slk.c
59   pdcurses/termattr.c
60   pdcurses/touch.c
61   pdcurses/util.c
62   pdcurses/window.c
64   wincon/pdcclip.c
65   wincon/pdcdisp.c
66   wincon/pdcgetsc.c
67   wincon/pdckbd.c
68   wincon/pdcscrn.c
69   wincon/pdcsetsc.c
70   wincon/pdcutil.c
71   wincon/pdcwin.h
72   )
73 target_include_directories(cmpdcurses PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")