forked from RetroShare/OpenPGP-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (22 loc) · 730 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (22 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# RetroShare decentralized communication platform
#
# Copyright (C) 2021 Gioacchino Mazzurco <gio@eigenlab.org>
# Copyright (C) 2021 Asociación Civil Altermundi <info@altermundi.net>
#
# SPDX-License-Identifier: CC0-1.0
cmake_minimum_required (VERSION 3.12.0)
project(openpgpsdk)
find_package(ZLIB REQUIRED)
find_package(BZip2 REQUIRED)
find_package(OpenSSL REQUIRED)
file(GLOB SOURCES src/openpgpsdk/*.c)
add_library(${PROJECT_NAME} ${SOURCES})
target_include_directories(
${PROJECT_NAME}
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src
PRIVATE ${OPENSSL_INCLUDE_DIR}
PRIVATE ${BZIP2_INCLUDE_DIRS}
PRIVATE ${ZLIB_INCLUDE_DIRS} )
target_link_libraries(
${PROJECT_NAME}
OpenSSL::SSL OpenSSL::Crypto BZip2::BZip2 ZLIB::ZLIB )