Mercurial > irccd
view CMakeLists.txt @ 950:9fcb0038fe0a
irccd: bring SSL support back
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 16 Jan 2021 23:23:31 +0100 |
parents | 21a91311c8ea |
children | 5e682f1cebcc |
line wrap: on
line source
# # CMakeLists.txt -- CMake build for irccd # # Copyright (c) 2013-2021 David Demelier <markand@malikania.fr> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # cmake_minimum_required(VERSION 3.12) project(irccd) set_property(GLOBAL PROPERTY USE_FOLDERS On) set(IRCCD_VERSION_MAJOR 4) set(IRCCD_VERSION_MINOR 0) set(IRCCD_VERSION_PATCH 0) option(IRCCD_WITH_JS "Enable Javascript" On) option(IRCCD_WITH_SSL "Enable SSL support" On) option(IRCCD_WITH_IRCCD "Enable irccd daemon" On) option(IRCCD_WITH_IRCCDCTL "Enable irccdctl utility" On) option(IRCCD_WITH_TESTS "Enable unit tests" Off) if (CMAKE_C_COMPILER_ID MATCHES "GNU|Clang") set(CMAKE_C_FLAGS "-Wall -Wextra") endif () include(GNUInstallDirs) if (IRCCD_WITH_SSL) find_package(OpenSSL REQUIRED) endif () add_subdirectory(extern/libcompat) if (IRCCD_WITH_JS) add_subdirectory(extern/libduktape) endif () add_subdirectory(lib) add_subdirectory(irccd) add_subdirectory(irccdctl) if (IRCCD_WITH_TESTS) enable_testing() add_subdirectory(extern/libgreatest) add_subdirectory(tests) endif ()