mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
6a92b99da3
libretroshare (not all build options yet) and it's dependencies can now be built using CMake instead of qmake. Even Qt itself deprecated qmake, which is not developed anymore, as build system and it was making many things much more difficult and requiring an enormous amount of black magic to support a wide range of platforms. libretroshare can now easly be build as static or shared library with simple commands and a maintaniable build system: ``` cmake \ -D RS_LIBRETROSHARE_STATIC=OFF -D RS_LIBRETROSHARE_SHARED=ON \ -S $YOUR_RS_SOURCE_DIR/libretroshare/ -B . make ```
28 lines
730 B
CMake
28 lines
730 B
CMake
# 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 )
|