-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (25 loc) · 748 Bytes
/
CMakeLists.txt
File metadata and controls
31 lines (25 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 2.6)
set(CURSES_NEED_NCURSES TRUE)
find_package(Curses REQUIRED)
if (CURSES_HAVE_CURSES_H)
add_definitions(-DHAVE_CURSES_H=1)
endif ()
if (CURSES_HAVE_NCURSES_H)
add_definitions(-DHAVE_NCURSES_H=1)
endif ()
if (CURSES_HAVE_NCURSES_CURSES_H)
add_definitions(-DHAVE_NCURSES_CURSES_H=1)
endif ()
if (CURSES_HAVE_NCURSES_NCURSES_H)
add_definitions(-DHAVE_NCURSES_NCURSES_H=1)
endif ()
include_directories(
"${PROJECT_SOURCE_DIR}/lxdialog"
${CURSES_INCLUDE_DIR}
)
add_subdirectory(lxdialog)
add_library(zconf zconf.tab.c)
add_executable(mconf mconf.c)
add_executable(conf conf.c)
target_link_libraries(mconf lxdialog ${CURSES_LIBRARIES} zconf)
target_link_libraries(conf ${CURSES_LIBRARIES} zconf)