aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-10-30 22:42:56 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-10-30 22:42:56 +0200
commit60f5f5538c4bfd9582c0bba648b317ff3ce4b1f8 (patch)
tree56b51d92aec656c9c6984a491b5abf1fe785bd8e /CMakeLists.txt
parent8c2089dd8117835cfbfaed2c8f50cd34e666487f (diff)
CMake pkg check, README.md
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6494836..6f1c527 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,8 +7,12 @@ set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_PACKAGE_VERSION_MAJOR 1)
set(CPACK_PACKAGE_VERSION_MINOR 0)
+find_package(PkgConfig REQUIRED)
include(CPack)
+pkg_check_modules(LIBEVENT REQUIRED libevent)
+pkg_check_modules(LIBMAGIC REQUIRED libmagic)
+
set(CMAKE_CXX_FLAGS "-Wall -Wextra -std=c++17")
set(CMAKE_CXX_FLAGS_DEBUG "-g3 -fpic -fno-omit-frame-pointer -fno-rtti -ffunction-sections -fdata-sections -fsanitize=address -fsanitize=leak")
set(CMAKE_CXX_FLAGS_RELEASE "-Os -fpic -fomit-frame-pointer -ffunction-sections -fdata-sections -flto")