mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 00:23:58 +00:00
update cmake to add LFDB and force C++11
This commit is contained in:
parent
c2f9aab068
commit
39ad7bc741
@ -9,6 +9,7 @@ set(ctl_src
|
|||||||
DB.cpp
|
DB.cpp
|
||||||
EmbeddedNetworkController.cpp
|
EmbeddedNetworkController.cpp
|
||||||
FileDB.cpp
|
FileDB.cpp
|
||||||
|
LFDB.cpp
|
||||||
RabbitMQ.cpp
|
RabbitMQ.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -16,6 +17,7 @@ set(ctl_hdr
|
|||||||
DB.hpp
|
DB.hpp
|
||||||
EmbeddedNetworkController.hpp
|
EmbeddedNetworkController.hpp
|
||||||
FileDB.hpp
|
FileDB.hpp
|
||||||
|
LFDB.hpp
|
||||||
RabbitMQ.hpp
|
RabbitMQ.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -28,3 +30,5 @@ if(BUILD_CENTRAL_CONTROLLER)
|
|||||||
endif(BUILD_CENTRAL_CONTROLLER)
|
endif(BUILD_CENTRAL_CONTROLLER)
|
||||||
|
|
||||||
add_library(${PROJECT_NAME} STATIC ${ctl_src} ${ctl_hdr})
|
add_library(${PROJECT_NAME} STATIC ${ctl_src} ${ctl_hdr})
|
||||||
|
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ endif(WIN32)
|
|||||||
file(GLOB core_headers *.hpp)
|
file(GLOB core_headers *.hpp)
|
||||||
file(GLOB core_src *.cpp)
|
file(GLOB core_src *.cpp)
|
||||||
add_library(${PROJECT_NAME} STATIC ${core_src} ${core_headers})
|
add_library(${PROJECT_NAME} STATIC ${core_src} ${core_headers})
|
||||||
|
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
set_source_files_properties(
|
set_source_files_properties(
|
||||||
|
@ -48,3 +48,5 @@ elseif(UNIX)
|
|||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
||||||
add_library(${PROJECT_NAME} STATIC ${src} ${headers})
|
add_library(${PROJECT_NAME} STATIC ${src} ${headers})
|
||||||
|
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
||||||
|
|
||||||
|
@ -16,3 +16,5 @@ set(headers
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_library(${PROJECT_NAME} STATIC ${src} ${headers})
|
add_library(${PROJECT_NAME} STATIC ${src} ${headers})
|
||||||
|
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user