-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (22 loc) · 1.08 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
cmake_minimum_required(VERSION 3.22)
project(lightweight_block_ciphers)
# dependence
# include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/GoogleTest.cmake)
set(CMAKE_CXX_STANDARD 17)
enable_testing()
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.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(lightweight_block_ciphers src/des/des_test.cpp src/des/des.c src/aes/aes.c src/aes/aes.h src/des/des.h src/aes/aes_test.cpp src/midori/midori.c src/midori/midori.h src/midori/midori_test.cpp src/lllwbc/lllwbc.c src/lllwbc/lllwbc.h src/lllwbc/lllwbc_test.cpp src/tools/bit.c src/tools/bit.h src/tools/tools_test.cpp src/craft/craft.c src/craft/craft.c src/craft/craft.h
src/craft/craft_test.cpp)
target_link_libraries(
lightweight_block_ciphers
gtest gtest_main
)
include(GoogleTest)
gtest_discover_tests(lightweight_block_ciphers)