-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
35 lines (27 loc) · 1.48 KB
/
CMakeLists.txt
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
28
29
30
31
32
33
34
35
# -----------------------------------------------------------------------------------------------------
# Copyright (c) 2021-2022, deCODE Genetics
# Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
# Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
# This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
# shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
# -----------------------------------------------------------------------------------------------------
# To build tests, run cmake on one of the sub-folders in the test/ subdirectory.
cmake_minimum_required (VERSION 3.4)
find_path (BIOCPP_MODULE_PATH "biocpp_core-config.cmake" HINTS "${CMAKE_CURRENT_LIST_DIR}/build_system/")
list (APPEND CMAKE_MODULE_PATH "${BIOCPP_MODULE_PATH}")
include (biocpp_core-config-version)
if (CMAKE_VERSION VERSION_LESS 3.12)
project (biocpp_core LANGUAGES CXX VERSION "${PACKAGE_VERSION}")
else ()
project (
biocpp_core LANGUAGES CXX VERSION "${PACKAGE_VERSION}"
DESCRIPTION "The core library of the BioC++ project."
HOMEPAGE_URL "https://github.com/biocpp/biocpp-core"
)
endif ()
find_package (biocpp_core REQUIRED HINTS ${BIOCPP_MODULE_PATH})
option(INSTALL_BIOCPP "Enable installation of BioC++ (Projects embedding biocpp may want to turn this OFF.)" ON)
if (INSTALL_BIOCPP)
include (biocpp_core-install)
include (biocpp_core-package)
endif ()