aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
blob: 22abdc9ec7751e376d41f3a3da4500f3e9c4af1c (plain) (blame)
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
# oldstable as of May '26
# Plus, I'm pretty sure it's required for things like CONFIGURE_DEPENDS and
# CMAKE_MSVC_RUNTIME_LIBRARY and stuff.
cmake_minimum_required(VERSION 3.25)

project(aes_tools C CXX)
enable_testing()

if (MSVC)
    add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:ASM,ASM_MASM>>:/MP;/W4;/WX>")

    # > structure was padded due to alignment specifier
    # So what?
    add_compile_options("/wd4324")
else()
    add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:ASM,ASM_MASM>>:-Wall;-Wextra;-pedantic;-Werror>")
endif()

add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX)

add_subdirectory(aes)
add_subdirectory(aesxx)
add_subdirectory(test)

install(FILES LICENSE.txt DESTINATION share)