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
|
# ===========================================================================
# SeqAn - The Library for Sequence Analysis
# ===========================================================================
# File: /tests/basic/CMakeLists.txt
#
# CMakeLists.txt file for the basic module tests.
# ===========================================================================
cmake_minimum_required (VERSION 3.12)
project (seqan_tests_basic CXX)
message (STATUS "Configuring tests/basic")
# ----------------------------------------------------------------------------
# Dependencies
# ----------------------------------------------------------------------------
# Search SeqAn and select dependencies.
if (NOT "${SEQAN_BUILD_SYSTEM}" STREQUAL "DEVELOP")
find_package (SeqAn REQUIRED)
endif ()
# ----------------------------------------------------------------------------
# Build Setup
# ----------------------------------------------------------------------------
# Add include directories.
include_directories (${SEQAN_INCLUDE_DIRS})
# Add definitions set by find_package (SeqAn).
add_definitions (${SEQAN_DEFINITIONS})
# Update the list of file names below if you add source files to your test.
add_executable (
test_basic_exception
test_basic_exception.cpp
test_basic_exception.h)
target_link_libraries (test_basic_exception ${SEQAN_LIBRARIES})
add_executable (
test_basic_metaprogramming
test_basic_metaprogramming.cpp
test_basic_metaprogramming_logic.h
test_basic_metaprogramming_type.h)
target_link_libraries (test_basic_metaprogramming ${SEQAN_LIBRARIES})
add_executable (
test_basic_fundamental
test_basic_fundamental.cpp
test_basic_fundamental_helpers.h
test_basic_fundamental_tags.h
test_basic_fundamental_metafunctions.h
test_basic_fundamental_transport.h
test_basic_fundamental_comparison.h
test_basic_fundamental_conversion.h
test_basic_array_construct_destruct.h
test_basic_hosted_type_interface.h)
target_link_libraries (test_basic_fundamental ${SEQAN_LIBRARIES})
add_executable (
test_basic_concept
test_basic_concept.cpp
test_basic_fundamental_concepts.h)
target_link_libraries (test_basic_concept ${SEQAN_LIBRARIES})
add_executable (
test_basic_alphabet
test_basic_alphabet.cpp
test_basic_alphabet_adapt_builtins.h
test_basic_alphabet_bio.h
test_basic_alphabet_concepts.h
test_basic_alphabet_math.h
test_basic_alphabet_profile.h
test_basic_alphabet_qualities.h
test_basic_alphabet_residue.h
test_basic_alphabet_storage.h
test_basic_fundamental_helpers.h)
target_link_libraries (test_basic_alphabet ${SEQAN_LIBRARIES})
add_executable (
test_basic_aggregate
test_basic_aggregate.cpp
test_basic_aggregate.h)
target_link_libraries (test_basic_aggregate ${SEQAN_LIBRARIES})
add_executable (
test_basic_allocator
test_basic_allocator.cpp
test_basic_allocator.h)
target_link_libraries (test_basic_allocator ${SEQAN_LIBRARIES})
add_executable (
test_basic_parallelism
test_basic_parallelism.cpp
test_basic_parallelism.h)
target_link_libraries (test_basic_parallelism ${SEQAN_LIBRARIES})
add_executable (
test_basic_math
test_basic_math.cpp
test_basic_math.h)
target_link_libraries (test_basic_math ${SEQAN_LIBRARIES})
add_executable (
test_basic_smart_pointer
test_basic_smart_pointer.cpp
test_basic_smart_pointer_holder.h)
target_link_libraries (test_basic_smart_pointer ${SEQAN_LIBRARIES})
add_executable (
test_basic_container
test_basic_container.cpp)
target_link_libraries (test_basic_container ${SEQAN_LIBRARIES})
add_executable (
test_basic_proxy
test_basic_proxy.cpp
test_basic_proxy.h)
target_link_libraries (test_basic_proxy ${SEQAN_LIBRARIES})
add_executable (
test_basic_iterator
test_basic_iterator.cpp
test_basic_iterator.h)
target_link_libraries (test_basic_iterator ${SEQAN_LIBRARIES})
# Add CXX flags found by find_package (SeqAn).
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SEQAN_CXX_FLAGS}")
# ----------------------------------------------------------------------------
# Register with CTest
# ----------------------------------------------------------------------------
add_test (NAME test_test_basic_exception COMMAND $<TARGET_FILE:test_basic_exception>)
add_test (NAME test_test_basic_metaprogramming COMMAND $<TARGET_FILE:test_basic_metaprogramming>)
add_test (NAME test_test_basic_fundamental COMMAND $<TARGET_FILE:test_basic_fundamental>)
add_test (NAME test_test_basic_concept COMMAND $<TARGET_FILE:test_basic_concept>)
add_test (NAME test_test_basic_alphabet COMMAND $<TARGET_FILE:test_basic_alphabet>)
add_test (NAME test_test_basic_aggregate COMMAND $<TARGET_FILE:test_basic_aggregate>)
add_test (NAME test_test_basic_allocator COMMAND $<TARGET_FILE:test_basic_allocator>)
add_test (NAME test_test_basic_parallelism COMMAND $<TARGET_FILE:test_basic_parallelism>)
add_test (NAME test_test_basic_math COMMAND $<TARGET_FILE:test_basic_math>)
add_test (NAME test_test_basic_smart_pointer COMMAND $<TARGET_FILE:test_basic_smart_pointer>)
add_test (NAME test_test_basic_container COMMAND $<TARGET_FILE:test_basic_container>)
add_test (NAME test_test_basic_proxy COMMAND $<TARGET_FILE:test_basic_proxy>)
add_test (NAME test_test_basic_iterator COMMAND $<TARGET_FILE:test_basic_iterator>)
|