Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 43 lines (33 sloc) 1.007 kb
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
cmake_minimum_required (VERSION 2.8.0)
project (pcurses)

if (NOT CMAKE_BUILD_TYPE)
   set(CMAKE_BUILD_TYPE Release)
endif ()

set(pcurses_VERSION_MAJOR 1)
set(pcurses_VERSION_MINOR 5)
set(pcurses_APPLICATION_NAME pcurses)

configure_file(
"${PROJECT_SOURCE_DIR}/globals.h.in"
"${PROJECT_BINARY_DIR}/globals.h"
)

set(CURSES_NCURSES_REQUIRED TRUE)

find_package(Boost REQUIRED)
find_package(Curses REQUIRED)

set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -Wextra -O2 -pedantic -fPIC -std=c++0x -D_FILE_OFFSET_BITS=64")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -Werror -Wall -Wextra -pedantic -fPIC -std=c++0x -D_FILE_OFFSET_BITS=64")

include_directories(
${CMAKE_SOURCE_DIR}
${Boost_INCLUDE_DIRS}
  ${Curses_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
)
aux_source_directory(. sources)

add_executable(pcurses
${sources}
)

target_link_libraries(pcurses
  ${CURSES_LIBRARIES}
  alpm
)

install(TARGETS pcurses DESTINATION bin)
install(FILES pcurses.conf DESTINATION /etc)
Something went wrong with that request. Please try again.