-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (23 loc) · 981 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
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright (c) 2020-2022 Jeffrey Hurchalla.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
if(TARGET bench_hurchalla_factoring)
return()
endif()
cmake_minimum_required(VERSION 3.14)
#set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/tests)
#set(CTEST_BINARY_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
add_executable(bench_hurchalla_factoring)
target_sources(bench_hurchalla_factoring PRIVATE
benchmark.cpp
)
set_target_properties(bench_hurchalla_factoring
PROPERTIES FOLDER "Benchmarks")
target_link_libraries(bench_hurchalla_factoring
hurchalla_factoring)
if(MSVC)
target_compile_options(bench_hurchalla_factoring PRIVATE /W4 /WX)
else()
target_compile_options(bench_hurchalla_factoring PRIVATE -Wall -Wextra -Wpedantic -Werror)
endif()