-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
58 lines (46 loc) · 1.14 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
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
cmake_minimum_required(VERSION 3.20)
project(
GaloisTableGenerator
VERSION 0.1
DESCRIPTION "A tool to generate addition/multiplication Galois tables"
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(galois_table
src/galois_number.h
src/galois_number.cpp
src/draw_tables.h
src/draw_tables.cpp
)
target_include_directories(galois_table
PUBLIC
src
)
add_executable (GaloisTableGenerator
src/main.cpp
)
target_link_libraries(GaloisTableGenerator
PRIVATE
galois_table
)
include(CTest)
include(FetchContent)
FetchContent_Declare(
googletest
# Specify the commit you depend on and update it regularly.
URL https://github.com/google/googletest/archive/f8d7d77c06936315286eb55f8de22cd23c188571.zip
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
add_executable(galois_table_test
tests/test_galois_number.cpp
)
target_link_libraries(galois_table_test
PRIVATE
galois_table
GTest::gtest
GTest::gtest_main
)
include(GoogleTest)
gtest_discover_tests(galois_table_test)