lnav/CMakeLists.txt

61 lines
1.2 KiB
CMake
Raw Normal View History

2014-09-19 04:51:01 +00:00
cmake_minimum_required(VERSION 3.2)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
include("cmake/HunterGate.cmake")
HunterGate(
2020-09-22 06:33:27 +00:00
URL "https://github.com/cpp-pm/hunter/archive/v0.23.269.tar.gz"
SHA1 "64024b7b95b4c86d50ae05b926814448c93a70a0"
LOCAL
)
set(CMAKE_CXX_STANDARD 14)
project(lnav
2020-09-02 05:36:16 +00:00
VERSION 0.9.0)
include(CTest)
2019-07-22 17:36:47 +00:00
include(GNUInstallDirs)
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)
set(lnav_LIBS
ZLIB::zlib
BZip2::bz2
sqlite3::sqlite3
PkgConfig::libpcrecpp
2019-07-16 06:04:31 +00:00
PkgConfig::libpcre
CURL::libcurl
readline::readline
readline::history
PkgConfig::ncursesw)
2014-09-19 04:51:01 +00:00
add_subdirectory(src)
add_subdirectory(test)