mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-03 11:44:09 +00:00
22 lines
380 B
CMake
22 lines
380 B
CMake
cmake_minimum_required (VERSION 2.8)
|
|
project(zt_core)
|
|
|
|
if(WIN32)
|
|
add_definitions(-DNOMINMAX)
|
|
endif(WIN32)
|
|
|
|
file(GLOB core_headers *.hpp)
|
|
file(GLOB core_src *.cpp)
|
|
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)
|