forked from doches/progressbar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (22 loc) · 943 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
project(ProgressBar)
cmake_minimum_required(VERSION 3.0)
set(CURSES_NEED_NCURSES TRUE)
find_package(Curses)
include_directories(${CURSES_INCLUDE_DIRS})
set(INCLUDE_INSTALL_DIR "include/" CACHE STRING "Include path")
set(LIB_INSTALL_DIR "lib/" CACHE STRING "Library path")
include(CMakePackageConfigHelpers)
configure_package_config_file(progressbarConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/progressbarConfig.cmake
INSTALL_DESTINATION ${LIB_INSTALL_DIR}/progressbar/cmake
PATH_VARS INCLUDE_INSTALL_DIR)
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/progressbarConfigVersion.cmake
VERSION 2.0.0
COMPATIBILITY SameMajorVersion)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/progressbarConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/progressbarConfigVersion.cmake
DESTINATION ${LIB_INSTALL_DIR}/progressbar/cmake)
include_directories(include/progressbar)
add_subdirectory(lib)
add_subdirectory(test)