update cmake to add LFDB and force C++11

This commit is contained in:
Grant Limberg 2019-08-01 14:36:35 -07:00
parent c2f9aab068
commit 39ad7bc741
4 changed files with 11 additions and 2 deletions

View File

@ -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)

View File

@ -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(

View File

@ -48,3 +48,5 @@ elseif(UNIX)
endif(WIN32)
add_library(${PROJECT_NAME} STATIC ${src} ${headers})
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)

View File

@ -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)