forked from heptagonhust/recruitment-2024-autumn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
23 lines (14 loc) · 871 Bytes
/
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
cmake_minimum_required(VERSION 3.22.1)
project(heptagon_24autumn_recruitment CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_EXPORT_COMPILE_COMMANDS on)
set(CMAKE_CXX_FLAGS "-O3 -fopenmp -mavx512bw -mavx512f -mavx512vl -mavx512dq")
include_directories(include)
file(GLOB SOURCE_FILES "src/*.cc" "main.cc")
add_executable(SmithWaterman ${SOURCE_FILES})
enable_testing()
set(dataset ${CMAKE_SOURCE_DIR}/data)
add_test(NAME "tiny case" COMMAND ${CMAKE_BINARY_DIR}/SmithWaterman ${dataset}/tiny_q.fna ${dataset}/tiny_t.fna ${dataset}/tiny_ref.txt)
add_test(NAME "small case" COMMAND ${CMAKE_BINARY_DIR}/SmithWaterman ${dataset}/small_q.fna ${dataset}/small_t.fna ${dataset}/small_ref.txt)
add_test(NAME "medium case" COMMAND ${CMAKE_BINARY_DIR}/SmithWaterman ${dataset}/medium_q.fna ${dataset}/medium_t.fna ${dataset}/medium_ref.txt)