mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 10:37:33 -07:00
More root work and CMake-ify root
This commit is contained in:
parent
b27a38e55e
commit
9994e591bd
5 changed files with 130 additions and 29 deletions
19
root/CMakeLists.txt
Normal file
19
root/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
cmake_minimum_required(VERSION 2.8)
|
||||
project(zerotier-root)
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DNOMINMAX)
|
||||
endif(WIN32)
|
||||
|
||||
add_executable(${PROJECT_NAME} root.cpp)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} zt_core zt_osdep)
|
||||
|
||||
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/node
|
||||
${CMAKE_SOURCE_DIR}/osdep
|
||||
${CMAKE_SOURCE_DIR}/ext/json
|
||||
${CMAKE_SOURCE_DIR}/ext/cpp-httplib
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue