/usr/share/cmake/seqan-config.cmake is in libseqan2-dev 2.3.1+dfsg-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 | # ============================================================================
# SeqAn - The Library for Sequence Analysis
# ============================================================================
# Copyright (c) 2006-2016, Knut Reinert, FU Berlin
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of Knut Reinert or the FU Berlin nor the names of
# its contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL KNUT REINERT OR THE FU BERLIN BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
# ============================================================================
#
# This CMake module will try to find SeqAn and its dependencies. You can use
# it the same way you would use any other CMake module.
#
# find_package(SeqAn [REQUIRED] ...)
#
# SeqAn has some optional dependencies that you must search for **before**
# you search for SeqAn:
#
# ZLIB -- zlib compression library
# BZip2 -- libbz2 compression library
# OpenMP -- OpenMP language extensions to C/C++
#
# E.g.
# find_package (ZLIB)
# find_package (BZip2)
# find_package (SeqAn [REQUIRED] ...)
#
# Once the search has been performed, the following variables will be set.
#
# SEQAN_FOUND -- Indicate whether SeqAn was found.
#
# (the dependencies have their own *_FOUND variables, but inside the code we
# also define the following macros to indicate whether dependencies were found:
# of the SeqAn library were found.
#
# SEQAN_HAS_ZLIB
# SEQAN_HAS_BZIP2
# SEQAN_HAS_OPENMP
#
# These variables give lists that are to be passed to the
# include_directories(), target_link_libraries(), and add_definitions()
# functions.
#
# SEQAN_INCLUDE_DIRS
# SEQAN_LIBRARIES
# SEQAN_DEFINITIONS
#
# The C++ compiler flags to set.
#
# SEQAN_CXX_FLAGS
#
# The following variables give the version of the SeqAn library, its
# major, minor, and the patch version part of the version string.
#
# SEQAN_VERSION_STRING
# SEQAN_VERSION_MAJOR
# SEQAN_VERSION_MINOR
# SEQAN_VERSION_PATCH
#
# ============================================================================
include(FindPackageMessage)
include(CheckIncludeFileCXX)
include(CheckCXXSourceCompiles)
# ----------------------------------------------------------------------------
# Define Constants.
# ----------------------------------------------------------------------------
set(_SEQAN_DEFAULT_LIBRARIES ZLIB OpenMP)
set(_SEQAN_ALL_LIBRARIES ZLIB BZip2 OpenMP)
# ----------------------------------------------------------------------------
# Set variables SEQAN_FIND_* to their default unless they have been set.
# ----------------------------------------------------------------------------
# SEQAN_FIND_DEPENDENCIES
if (SEQAN_FIND_DEPENDENCIES STREQUAL "DEFAULT")
set(SEQAN_FIND_DEPENDENCIES ${_SEQAN_DEFAULT_LIBRARIES})
elseif (SEQAN_FIND_DEPENDENCIES STREQUAL "ALL")
set(SEQAN_FIND_DEPENDENCIES ${_SEQAN_ALL_LIBRARIES})
elseif (SEQAN_FIND_DEPENDENCIES STREQUAL "NONE")
set(SEQAN_FIND_DEPENDENCIES)
endif ()
# SEQAN_FIND_DEPENDENCIES IS DEPRECATED, just use find_package!
# ----------------------------------------------------------------------------
# Deactivate verbosity if package detection is quite
# ----------------------------------------------------------------------------
# deactivate messages in check_* if quiet
set (CMAKE_REQUIRED_QUIET ${SeqAn_FIND_QUIETLY})
# ----------------------------------------------------------------------------
# Determine compiler.
# ----------------------------------------------------------------------------
# Recognize Clang compiler.
set (COMPILER_CLANG FALSE)
set (COMPILER_GCC FALSE)
set (COMPILER_LINTEL FALSE)
set (COMPILER_WINTEL FALSE)
set (COMPILER_MSVC FALSE)
set (STDLIB_VS ${MSVC})
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set (COMPILER_CLANG TRUE)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND STDLIB_VS)
set (COMPILER_WINTEL TRUE)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Intel")
set (COMPILER_LINTEL TRUE)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set (COMPILER_GCC TRUE)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set (COMPILER_MSVC TRUE)
endif ()
# ----------------------------------------------------------------------------
# Check required compiler versions.
# ----------------------------------------------------------------------------
if (COMPILER_GCC)
# require at least gcc 4.9
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
message(AUTHOR_WARNING "GCC version (${CMAKE_CXX_COMPILER_VERSION}) should be at least 4.9! Anything below is untested.")
endif ()
elseif (COMPILER_CLANG)
# require at least clang 3.5
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5)
message(AUTHOR_WARNING "Clang version (${CMAKE_CXX_COMPILER_VERSION}) should be at least 3.5! Anything below is untested.")
endif ()
elseif (COMPILER_LINTEL OR COMPILER_WINTEL)
# require at least icpc 16.0.2
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16.0.2)
message(AUTHOR_WARNING "Intel Compiler version (${CMAKE_CXX_COMPILER_VERSION}) should be at least 16.0.2! Anything below is untested.")
endif ()
elseif (COMPILER_MSVC)
# require at least MSVC 19.0
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.0")
message(FATAL_ERROR "MSVC version (${CMAKE_CXX_COMPILER_VERSION}) must be at least 19.0 (Visual Studio 2015)!")
endif ()
else ()
message(WARNING "You are using an unsupported compiler! Compilation has only been tested with >= Clang 3.5, >= GCC 4.9 and >= MSVC 19.0 (VS 2015).")
endif ()
# ----------------------------------------------------------------------------
# Require C++14
# ----------------------------------------------------------------------------
# The visual studio compiler and intel compiler on windows defines __cplusplus
# still as 199711L, thus the check below would fail.
if (NOT (COMPILER_MSVC OR COMPILER_WINTEL))
set(CXXSTD_TEST_SOURCE
"#if !defined(__cplusplus) || (__cplusplus < 201300L)
#error NOCXX14
#endif
int main() {}")
check_cxx_source_compiles("${CXXSTD_TEST_SOURCE}" CXX14_BUILTIN)
if (NOT CXX14_BUILTIN)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
check_cxx_source_compiles("${CXXSTD_TEST_SOURCE}" CXX14_FLAG)
if (NOT CXX14_FLAG)
message (FATAL_ERROR "SeqAn requires C++14 since v2.2.0, but your compiler does not support it.")
return ()
endif ()
endif ()
endif ()
# ----------------------------------------------------------------------------
# Compile-specific settings and workarounds around missing CMake features.
# ----------------------------------------------------------------------------
# GCC/CLANG/ICC
if (COMPILER_GCC OR COMPILER_CLANG OR COMPILER_LINTEL)
# Tune warnings for GCC.
set (SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64)
# Determine GCC version.
EXEC_PROGRAM(${CMAKE_CXX_COMPILER}
ARGS --version
OUTPUT_VARIABLE __GCC_VERSION)
# Remove all but first line.
STRING(REGEX REPLACE "([^\n]+).*" "\\1" __GCC_VERSION ${__GCC_VERSION})
# Find out version (3 or 2 components).
STRING(REGEX REPLACE ".*([0-9])\\.([0-9])\\.([0-9]).*" "\\1\\2\\3"
__GCC_VERSION ${__GCC_VERSION})
STRING(REGEX REPLACE ".*([0-9])\\.([0-9]).*" "\\1\\20"
_GCC_VERSION ${__GCC_VERSION})
# Force GCC to keep the frame pointer when debugging is enabled. This is
# mainly important for 64 bit but does not get into the way on 32 bit either
# at minimal performance impact.
if (CMAKE_BUILD_TYPE STREQUAL Debug)
set (SEQAN_CXX_FLAGS "${SEQAN_CXX_FLAGS} ${SEQAN_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer")
elseif (CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
set (SEQAN_CXX_FLAGS "${SEQAN_CXX_FLAGS} ${SEQAN_CXX_FLAGS_RELEASE} -g -fno-omit-frame-pointer")
endif ()
endif ()
# Windows Setup
if (WIN32)
# Always set NOMINMAX such that <Windows.h> does not define min/max as
# macros.
set (SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} -DNOMINMAX)
endif (WIN32)
# Visual Studio Setup
if (COMPILER_MSVC OR COMPILER_WINTEL)
# Enable intrinics (e.g. _interlockedIncrease)
# /EHsc will be set automatically for COMPILER_MSVC and COMPILER_WINTEL, but
# COMPILER_CLANG (clang/c2 3.7) can not handle the /EHsc and /Oi flag
set (SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} /Oi)
endif ()
# ----------------------------------------------------------------------------
# Search for directory seqan.
# ----------------------------------------------------------------------------
option (SEQAN_USE_SEQAN_BUILD_SYSTEM "Whether or not to expect the SeqAn build system." OFF)
if (SEQAN_USE_SEQAN_BUILD_SYSTEM)
# When using the SeqAn build system, we scan all entries in
# CMAKE_INCLUDE_PATH for a subdirectory seqan and add all paths to the
# variable SEQAN_INCLUDE_DIRS_MAIN.
set (_SEQAN_INCLUDE_DIRS "")
foreach (_SEQAN_BASEDIR ${CMAKE_INCLUDE_PATH})
if (EXISTS ${_SEQAN_BASEDIR}/seqan)
get_filename_component(_SEQAN_BASEDIR "${_SEQAN_BASEDIR}" ABSOLUTE)
set(_SEQAN_INCLUDE_DIRS ${_SEQAN_INCLUDE_DIRS} ${_SEQAN_BASEDIR})
endif (EXISTS ${_SEQAN_BASEDIR}/seqan)
endforeach (_SEQAN_BASEDIR ${CMAKE_INCLUDE_PATH})
if (_SEQAN_INCLUDE_DIRS)
set(SEQAN_FOUND TRUE)
set(SEQAN_INCLUDE_DIRS_MAIN ${SEQAN_INCLUDE_DIRS_MAIN} ${_SEQAN_INCLUDE_DIRS})
else (_SEQAN_INCLUDE_DIRS)
set(SEQAN_FOUND FALSE)
endif (_SEQAN_INCLUDE_DIRS)
else (SEQAN_USE_SEQAN_BUILD_SYSTEM)
# When NOT using the SeqAn build system then we only look for one directory
# with subdirectory seqan and thus only one library.
find_path(_SEQAN_BASEDIR "seqan"
PATHS ${SEQAN_INCLUDE_PATH} ENV SEQAN_INCLUDE_PATH
NO_DEFAULT_PATH)
if (NOT _SEQAN_BASEDIR)
find_path(_SEQAN_BASEDIR "seqan")
endif()
mark_as_advanced(_SEQAN_BASEDIR)
if (_SEQAN_BASEDIR)
set(SEQAN_FOUND TRUE)
set(SEQAN_INCLUDE_DIRS_MAIN ${SEQAN_INCLUDE_DIRS_MAIN} ${_SEQAN_BASEDIR})
else ()
set(SEQAN_FOUND FALSE)
endif ()
endif (SEQAN_USE_SEQAN_BUILD_SYSTEM)
# ----------------------------------------------------------------------------
# Search for dependencies.
# ----------------------------------------------------------------------------
# librt, libpthread -- implicit, on Linux only
if ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") OR (${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD") OR (${CMAKE_SYSTEM_NAME} STREQUAL "GNU"))
set (SEQAN_LIBRARIES ${SEQAN_LIBRARIES} rt)
endif ()
if (UNIX AND NOT APPLE)
if ((CMAKE_CXX_FLAGS MATCHES "-static") OR (SEQAN_CXX_FLAGS MATCHES "-static") OR (CMAKE_EXE_LINKER_FLAGS MATCHES "-static"))
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--whole-archive -lpthread -Wl,--no-whole-archive")
else ()
set (SEQAN_LIBRARIES ${SEQAN_LIBRARIES} pthread)
endif ()
endif ()
if ((${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") OR (${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD"))
set (SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} "-D_GLIBCXX_USE_C99=1")
endif ()
# libexecinfo -- implicit
check_include_file_cxx(execinfo.h _SEQAN_HAVE_EXECINFO)
mark_as_advanced(_SEQAN_HAVE_EXECINFO)
if (_SEQAN_HAVE_EXECINFO)
set(SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} "-DSEQAN_HAS_EXECINFO=1")
if ((${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") OR (${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD"))
set (SEQAN_LIBRARIES ${SEQAN_LIBRARIES} execinfo elf)
endif ()
else (_SEQAN_HAVE_EXECINFO)
set(SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} "-DSEQAN_HAS_EXECINFO=0")
endif (_SEQAN_HAVE_EXECINFO)
# ZLIB
set (SEQAN_HAS_ZLIB FALSE)
# should SeqAn search for dependency?
list(FIND SEQAN_FIND_DEPENDENCIES "ZLIB" _SEQAN_FIND_ZLIB)
mark_as_advanced(_SEQAN_FIND_ZLIB)
if (NOT _SEQAN_FIND_ZLIB EQUAL -1)
find_package(ZLIB QUIET)
endif ()
if (ZLIB_FOUND)
set (SEQAN_HAS_ZLIB TRUE) # deprecated: use ZLIB_FOUND instead
set (SEQAN_LIBRARIES ${SEQAN_LIBRARIES} ${ZLIB_LIBRARIES})
set (SEQAN_INCLUDE_DIRS_DEPS ${SEQAN_INCLUDE_DIRS_DEPS} ${ZLIB_INCLUDE_DIRS})
set (SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} "-DSEQAN_HAS_ZLIB=1")
endif ()
# BZip2
set (SEQAN_HAS_BZIP2 FALSE)
# should SeqAn search for dependency?
list(FIND SEQAN_FIND_DEPENDENCIES "BZip2" _SEQAN_FIND_BZIP2)
mark_as_advanced(_SEQAN_FIND_BZIP2)
if (NOT _SEQAN_FIND_BZIP2 EQUAL -1)
find_package(BZip2 QUIET)
endif ()
if (BZIP2_FOUND)
set (SEQAN_HAS_BZIP2 TRUE) # deprecated: use BZIP2_FOUND instead
set (SEQAN_LIBRARIES ${SEQAN_LIBRARIES} ${BZIP2_LIBRARIES})
set (SEQAN_INCLUDE_DIRS_DEPS ${SEQAN_INCLUDE_DIRS_DEPS} ${BZIP2_INCLUDE_DIRS})
set (SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} "-DSEQAN_HAS_BZIP2=1")
endif ()
# OpenMP
set (SEQAN_HAS_OPENMP FALSE)
# should SeqAn search for dependency?
list(FIND SEQAN_FIND_DEPENDENCIES "OpenMP" _SEQAN_FIND_OPENMP)
mark_as_advanced(_SEQAN_FIND_OPENMP)
if (NOT _SEQAN_FIND_OPENMP EQUAL -1)
find_package(OpenMP QUIET)
endif ()
if (OPENMP_FOUND)
if (COMPILER_CLANG AND (_GCC_VERSION MATCHES "^37[0-9]$"))
message (STATUS "Because of a bug in clang-3.7.x OpenMP cannot be used (even if available). Please update your clang!")
set (OPENMP_FOUND FALSE)
elseif (COMPILER_CLANG AND STDLIB_VS AND (_GCC_VERSION MATCHES "^38[0-9]$"))
# The compiler also issues a warning
# clang.exe : warning : '-fopenmp=libomp': OpenMP is not supported
message (STATUS "The clang/c2 compiler on windows (version 3.7 and 3.8) doesn't support OpenMP!")
set (OPENMP_FOUND FALSE)
else ()
set (SEQAN_HAS_OPENMP TRUE) # deprecated: use OPENMP_FOUND instead
set (SEQAN_LIBRARIES ${SEQAN_LIBRARIES} ${OpenMP_LIBRARIES})
set (SEQAN_INCLUDE_DIRS_DEPS ${SEQAN_INCLUDE_DIRS_DEPS} ${OpenMP_INCLUDE_DIRS})
set (SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} "-DSEQAN_HAS_OPENMP=1")
set (SEQAN_CXX_FLAGS "${SEQAN_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif ()
endif ()
if (Boost_FOUND)
# Example warning:
# C:\seqan-deps\boost_1_53_0\boost/mpl/if.hpp(131,1): error : pasting formed
# 'BOOST_PP_TUPLE_ELEM_E_2(', an invalid preprocessing token
if (COMPILER_CLANG AND STDLIB_VS)
message (STATUS "The boost library (at least until 1.53) doesn't support the clang/c2 compiler on windows (version 3.7 and 3.8), yet!")
set (Boost_FOUND FALSE)
unset(Boost_INCLUDE_DIRS)
unset(Boost_LIBRARY_DIRS)
unset(Boost_LIBRARIES)
endif()
endif()
# Build SEQAN_INCLUDE_DIRS from SEQAN_INCLUDE_DIRS_MAIN and SEQAN_INCLUDE_DIRS_DEPS
set (SEQAN_INCLUDE_DIRS ${SEQAN_INCLUDE_DIRS_MAIN} ${SEQAN_INCLUDE_DIRS_DEPS})
# ----------------------------------------------------------------------------
# Determine and set SEQAN_VERSION_* variables.
# ----------------------------------------------------------------------------
if (NOT DEFINED SEQAN_VERSION_STRING)
# Scan all include dirs identified by the build system and
# check if there is a file version.h in a subdir seqan/
# If exists store absolute path to file and break loop.
set (_SEQAN_VERSION_H "")
foreach(_INCLUDE_DIR ${SEQAN_INCLUDE_DIRS_MAIN})
get_filename_component(_SEQAN_VERSION_H "${_INCLUDE_DIR}/seqan/version.h" ABSOLUTE)
if (EXISTS ${_SEQAN_VERSION_H})
break()
endif()
endforeach()
set (_SEQAN_VERSION_IDS MAJOR MINOR PATCH PRE_RELEASE)
# If file wasn't found seqan version is set to 0.0.0
foreach (_ID ${_SEQAN_VERSION_IDS})
set(_SEQAN_VERSION_${_ID} "0")
endforeach()
# Error log if version.h not found, otherwise read version from
# version.h and cache it.
if (NOT EXISTS "${_SEQAN_VERSION_H}")
message ("")
message ("ERROR: Could not determine SeqAn version.")
message ("Could not find file: ${_SEQAN_VERSION_H}")
else ()
foreach (_ID ${_SEQAN_VERSION_IDS})
file (STRINGS ${_SEQAN_VERSION_H} _VERSION_${_ID} REGEX ".*SEQAN_VERSION_${_ID}.*")
string (REGEX REPLACE ".*SEQAN_VERSION_${_ID}[ |\t]+([0-9a-zA-Z]+).*" "\\1" _SEQAN_VERSION_${_ID} ${_VERSION_${_ID}})
endforeach ()
endif ()
# Check for pre release.
if (SEQAN_VERSION_PRE_RELEASE EQUAL 1)
set (_SEQAN_VERSION_DEVELOPMENT "TRUE")
else ()
set (_SEQAN_VERSION_DEVELOPMENT "FALSE")
endif ()
set (_SEQAN_VERSION_STRING "${_SEQAN_VERSION_MAJOR}.${_SEQAN_VERSION_MINOR}.${_SEQAN_VERSION_PATCH}")
if (_SEQAN_VERSION_DEVELOPMENT)
set (_SEQAN_VERSION_STRING "${_SEQAN_VERSION_STRING}_dev")
endif ()
# Cache results.
set (SEQAN_VERSION_MAJOR "${_SEQAN_VERSION_MAJOR}" CACHE INTERNAL "SeqAn major version.")
set (SEQAN_VERSION_MINOR "${_SEQAN_VERSION_MINOR}" CACHE INTERNAL "SeqAn minor version.")
set (SEQAN_VERSION_PATCH "${_SEQAN_VERSION_PATCH}" CACHE INTERNAL "SeqAn patch version.")
set (SEQAN_VERSION_PRE_RELEASE "${_SEQAN_VERSION_PRE_RELEASE}" CACHE INTERNAL "Whether version is a pre-release version version.")
set (SEQAN_VERSION_STRING "${_SEQAN_VERSION_STRING}" CACHE INTERNAL "SeqAn version string.")
endif (NOT DEFINED SEQAN_VERSION_STRING)
# ----------------------------------------------------------------------------
# Print Variables
# ----------------------------------------------------------------------------
if (NOT SeqAn_FIND_QUIETLY)
message (STATUS "Found Seqan: ${SEQAN_INCLUDE_DIRS_MAIN} (found version \"${SEQAN_VERSION_STRING}\")")
endif ()
if (SEQAN_FIND_DEBUG)
message("Result for ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt")
message("")
message(" CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}")
message(" CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}")
message(" CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH}")
message(" _SEQAN_BASEDIR ${_SEQAN_BASEDIR}")
message("")
message(" SEQAN_FOUND ${SEQAN_FOUND}")
message(" SEQAN_HAS_ZLIB ${SEQAN_HAS_ZLIB}")
message(" SEQAN_HAS_BZIP2 ${SEQAN_HAS_BZIP2}")
message(" SEQAN_HAS_OPENMP ${SEQAN_HAS_OPENMP}")
message("")
message(" SEQAN_INCLUDE_DIRS ${SEQAN_INCLUDE_DIRS}")
message(" SEQAN_INCLUDE_DIRS_DEPS ${SEQAN_INCLUDE_DIRS_DEPS}")
message(" SEQAN_INCLUDE_DIRS_MAIN ${SEQAN_INCLUDE_DIRS_MAIN}")
message(" SEQAN_LIBRARIES ${SEQAN_LIBRARIES}")
message(" SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS}")
message(" SEQAN_CXX_FLAGS ${SEQAN_CXX_FLAGS}")
message("")
message(" SEQAN_VERSION_STRING ${SEQAN_VERSION_STRING}")
message(" SEQAN_VERSION_MAJOR ${SEQAN_VERSION_MAJOR}")
message(" SEQAN_VERSION_MINORG ${SEQAN_VERSION_MINOR}")
message(" SEQAN_VERSION_PATCH ${SEQAN_VERSION_PATCH}")
endif ()
|