obs-studio/deps/blake2/CMakeLists.txt

19 lines
500 B
CMake
Raw Normal View History

project(blake2)
add_library(blake2 STATIC)
add_library(OBS::blake2 ALIAS blake2)
target_sources(blake2 PRIVATE src/blake2b-ref.c src/blake2.h src/blake2-impl.h)
target_include_directories(blake2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
if(OS_WINDOWS)
if(MSVC)
target_compile_options(blake2 PRIVATE "$<IF:$<CONFIG:Debug>,/MTd,/MT>" /Zl)
endif()
target_compile_definitions(blake2 PRIVATE inline=_inline restrict=__restrict)
endif()
2020-05-13 06:37:01 -07:00
set_target_properties(blake2 PROPERTIES FOLDER "deps")