-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
13 lines (8 loc) · 822 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_minimum_required(VERSION 3.12)
project(AES)
set(CMAKE_CXX_STANDARD 14)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=leak -g -Ofast")
add_subdirectory("gtest")
add_executable(AES src/main.cpp src/cipher/State.h src/cipher/State.cpp src/cipher/Cipher.h src/cipher/SBox.h src/key/AESKey.h src/key/AESKey.cpp src/cipher/Arithmetics.h src/key/InvalidKeyLengthException.h src/cipher/Cipher.cpp src/cipher/BitMulConstants.h)
add_executable(tests test/runTests.cpp src/cipher/State.h src/cipher/State.cpp test/StateTest.cpp src/cipher/Cipher.h src/cipher/SBox.h test/SboxTest.cpp src/key/AESKey.h src/key/AESKey.cpp test/cipherTest.cpp src/cipher/Arithmetics.h src/key/InvalidKeyLengthException.h test/keyTest.cpp src/cipher/Cipher.cpp src/cipher/BitMulConstants.h)
target_link_libraries(tests gtest gtest_main)