Linux build with CMake

This commit is contained in:
Grant Limberg 2019-06-21 15:16:20 -07:00
parent d3b33e5512
commit 4d599e2f9f
3 changed files with 60 additions and 14 deletions

View file

@ -7,4 +7,15 @@ endif(WIN32)
file(GLOB core_headers *.hpp)
file(GLOB core_src *.cpp)
add_library(${PROJECT_NAME} STATIC ${core_src} ${core_headers})
add_library(${PROJECT_NAME} STATIC ${core_src} ${core_headers})
if(UNIX)
set_source_files_properties(
Salsa20.cpp
SHA512.cpp
C25519.cpp
Poly1305.cpp
PROPERTIES
COMPILE_FLAGS "-Wall -O3"
)
endif(UNIX)