aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 189100d..d2d1d89 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.11)
project(spm C)
+include(FindPkgConfig)
include(CTest)
include(CheckSymbolExists)
@@ -10,6 +11,15 @@ set(CMAKE_INSTALL_RPATH $ORIGIN/../lib)
enable_testing()
check_symbol_exists(strsep string.h HAVE_STRSEP)
check_symbol_exists(reallocarray stdlib.h HAVE_REALLOCARRAY)
+pkg_check_modules(OpenSSL openssl>=1.1)
+pkg_check_modules(CURL libcurl>=7.0)
+find_program(RELOC reloc)
+find_program(TAR tar)
+find_program(WHICH which)
+find_program(FILE file)
+find_program(OBJDUMP objdump)
+find_program(RSYNC rsync)
+
configure_file(${CMAKE_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/include/config.h)
add_subdirectory(lib)