1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 12:07:13 +01:00
SqMod/module/Vendor/Whirlpool/CMakeLists.txt

16 lines
437 B
CMake
Raw Normal View History

2020-03-21 22:00:02 +02:00
# Create the WhirlpoolLib library
add_library(WhirlpoolLib STATIC
include/ustd.h
include/whirlpool.h
byte_order.h byte_order.c
whirlpool.c
2020-03-21 22:00:02 +02:00
whirlpool_sbox.c
)
# Configure include folders
target_include_directories(WhirlpoolLib PRIVATE ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(WhirlpoolLib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
2020-08-19 16:49:45 +03:00
# Enable LTO
if (LTO_ENABLED)
target_link_libraries(WhirlpoolLib PRIVATE -flto)
endif()