-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
46 lines (36 loc) · 930 Bytes
/
CMakeLists.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required (VERSION 2.8.0)
project (pcurses)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(pcurses_VERSION 4)
set(pcurses_APPLICATION_NAME pcurses)
configure_file(
"${PROJECT_SOURCE_DIR}/src/globals.h.in"
"${PROJECT_BINARY_DIR}/src/globals.h"
)
set(CURSES_NCURSES_REQUIRED TRUE)
find_package(Boost REQUIRED)
find_package(Curses REQUIRED)
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(
-Wall -Wextra -Werror -O2 -pedantic -fPIC -std=gnu++11
-D_FILE_OFFSET_BITS=64
)
endif(CMAKE_COMPILER_IS_GNUCXX)
include_directories(
${CMAKE_SOURCE_DIR}
${Boost_INCLUDE_DIRS}
${Curses_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/src
)
aux_source_directory(src/ sources)
add_executable(pcurses
${sources}
)
target_link_libraries(pcurses
${CURSES_LIBRARIES}
alpm
)
install(TARGETS pcurses DESTINATION bin)
install(FILES pcurses.conf DESTINATION /etc)