2014-09-19 08:51:01 +04:00
|
|
|
|
2019-07-09 18:34:55 +03:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2019-06-27 07:52:40 +03:00
|
|
|
|
2019-07-09 18:34:55 +03:00
|
|
|
include("cmake/HunterGate.cmake")
|
|
|
|
HunterGate(
|
2020-06-10 06:39:51 +03:00
|
|
|
URL "https://github.com/cpp-pm/hunter/archive/v0.23.256.tar.gz"
|
|
|
|
SHA1 "e9b8328133fc0643d5f921fec81f2c0808c98419"
|
2019-07-09 18:34:55 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
project(lnav
|
2019-07-15 18:40:44 +03:00
|
|
|
VERSION 0.8.6)
|
2019-07-09 18:34:55 +03:00
|
|
|
|
|
|
|
include(CTest)
|
2019-07-22 20:36:47 +03:00
|
|
|
include(GNUInstallDirs)
|
2019-07-09 18:34:55 +03:00
|
|
|
|
|
|
|
hunter_add_package(libpcre)
|
|
|
|
find_package(libpcre CONFIG REQUIRED)
|
|
|
|
find_package(libpcrecpp CONFIG REQUIRED)
|
|
|
|
|
|
|
|
hunter_add_package(BZip2)
|
|
|
|
find_package(BZip2 CONFIG REQUIRED)
|
|
|
|
|
|
|
|
hunter_add_package(sqlite3)
|
|
|
|
find_package(sqlite3 CONFIG REQUIRED)
|
|
|
|
|
|
|
|
hunter_add_package(ZLIB)
|
|
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
|
|
|
|
hunter_add_package(CURL)
|
|
|
|
find_package(CURL CONFIG REQUIRED)
|
|
|
|
|
|
|
|
hunter_add_package(ncursesw)
|
|
|
|
find_package(ncursesw CONFIG REQUIRED)
|
|
|
|
|
|
|
|
hunter_add_package(readline)
|
|
|
|
find_package(readline REQUIRED)
|
2019-06-27 07:52:40 +03:00
|
|
|
|
|
|
|
set(lnav_LIBS
|
2019-07-09 18:34:55 +03:00
|
|
|
ZLIB::zlib
|
|
|
|
BZip2::bz2
|
|
|
|
sqlite3::sqlite3
|
|
|
|
PkgConfig::libpcrecpp
|
2019-07-16 09:04:31 +03:00
|
|
|
PkgConfig::libpcre
|
2019-07-09 18:34:55 +03:00
|
|
|
CURL::libcurl
|
|
|
|
readline::readline
|
|
|
|
readline::history
|
|
|
|
PkgConfig::ncursesw)
|
2019-06-27 07:52:40 +03:00
|
|
|
|
2014-09-19 08:51:01 +04:00
|
|
|
add_subdirectory(src)
|
2014-09-29 09:36:07 +04:00
|
|
|
add_subdirectory(test)
|