forked from seqan/seqan3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (31 loc) · 1.63 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
36
37
38
39
# -----------------------------------------------------------------------------------------------------
# Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
# Copyright (c) 2016-2021, 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
# -----------------------------------------------------------------------------------------------------
# This file provides functionality common to the different test modules used by
# SeqAn3. To build tests, run cmake on one of the sub-folders in this directory
# which contain a CMakeLists.txt.
cmake_minimum_required (VERSION 3.4)
find_path (SEQAN3_MODULE_PATH "seqan3-config.cmake" HINTS "${CMAKE_CURRENT_LIST_DIR}/build_system/")
list (APPEND CMAKE_MODULE_PATH "${SEQAN3_MODULE_PATH}")
include (seqan3-config-version)
if (CMAKE_VERSION VERSION_LESS 3.12)
project (seqan3
LANGUAGES CXX
VERSION "${SEQAN3_PROJECT_VERSION}")
else ()
project (seqan3
LANGUAGES CXX
VERSION "${SEQAN3_PROJECT_VERSION}"
DESCRIPTION "SeqAn3 -- the modern C++ library for sequence analysis" # since cmake 3.9
HOMEPAGE_URL "https://github.com/seqan/seqan3" # since cmake 3.12
)
endif ()
find_package (SeqAn3 3.0 REQUIRED HINTS ${SEQAN3_MODULE_PATH})
option (INSTALL_SEQAN3 "Enable installation of seqan3. (Projects embedding seqan3 may want to turn this OFF.)" ON)
if (INSTALL_SEQAN3)
include (seqan3-install)
include (seqan3-package)
endif ()