From 24577c42b279efcbbc431b361ac47a83bbbe5d92 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 15 Feb 2018 23:57:58 +1000 Subject: [PATCH] * check needed libraries in cmake --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 783a044..9a1e53b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,16 @@ if (WITH_HARDENING) add_definitions("-D_FORTIFY_SOURCE=2") endif () +find_library(MAGIC_FOUND "magic") +if (NOT MAGIC_FOUND) + message(FATAL_ERROR "libmagic not found") +endif () + +find_library(SIMDB_FOUND "simdb") +if (NOT SIMDB_FOUND) + message(FATAL_ERROR "libsimdb not found") +endif () + message(STATUS "Project : ${CNAME} v${VERSION}") message(STATUS "Compiler : ${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION})") message(STATUS "- CFLAGS : ${CMAKE_C_FLAGS}")