-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
29 lines (19 loc) · 1.01 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
# 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/.
cmake_minimum_required(VERSION 3.14)
project(modular_arithmetic_example VERSION 1.0.0 LANGUAGES CXX)
add_executable(modular_arithmetic_example)
target_sources(modular_arithmetic_example PRIVATE
example.cpp
)
# in add_subdirectory below, the first argument must be the path on your system
# to the root of the cloned modular arithmetic repository. In this example,
# "../.." is used because (unless you move it) this CMakeLists.txt file has a
# path that is within the repository, and that path is two directory levels
# below the repo's root.
add_subdirectory(../.. ${CMAKE_CURRENT_BINARY_DIR}/modular_arithmetic)
target_link_libraries(modular_arithmetic_example
hurchalla_modular_arithmetic)
# To build this example, see the file example.sh.