mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-30 08:04:04 +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
|
||||
EmbeddedNetworkController.cpp
|
||||
FileDB.cpp
|
||||
LFDB.cpp
|
||||
RabbitMQ.cpp
|
||||
)
|
||||
|
||||
@ -16,6 +17,7 @@ set(ctl_hdr
|
||||
DB.hpp
|
||||
EmbeddedNetworkController.hpp
|
||||
FileDB.hpp
|
||||
LFDB.hpp
|
||||
RabbitMQ.hpp
|
||||
)
|
||||
|
||||
@ -27,4 +29,6 @@ if(BUILD_CENTRAL_CONTROLLER)
|
||||
set(ctl_hdr ${ctl_hdr} PostgreSQL.hpp)
|
||||
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_src *.cpp)
|
||||
add_library(${PROJECT_NAME} STATIC ${core_src} ${core_headers})
|
||||
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
||||
|
||||
if(UNIX)
|
||||
set_source_files_properties(
|
||||
|
@ -48,3 +48,5 @@ elseif(UNIX)
|
||||
endif(WIN32)
|
||||
|
||||
add_library(${PROJECT_NAME} STATIC ${src} ${headers})
|
||||
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
||||
|
||||
|
@ -15,4 +15,6 @@ set(headers
|
||||
SoftwareUpdater.hpp
|
||||
)
|
||||
|
||||
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