This commit is contained in:
Adam Gu
2018-04-13 17:52:51 +08:00
11 changed files with 103 additions and 101 deletions
+1 -7
View File
@@ -1,10 +1,4 @@
if(UNIX)
add_definitions(-std=c++11)
endif()
file(GLOB SRCS *.cc *.h)
add_executable(rest_book_client ${SRCS})
add_executable(rest_book_client main.cc)
target_link_libraries(rest_book_client webcc jsoncpp ${Boost_LIBRARIES})
target_link_libraries(rest_book_client "${CMAKE_THREAD_LIBS_INIT}")
-4
View File
@@ -1,7 +1,3 @@
if(UNIX)
add_definitions(-std=c++11)
endif()
file(GLOB SRCS *.cc *.h)
add_executable(rest_book_server ${SRCS})
+3 -3
View File
@@ -1,6 +1,6 @@
if(UNIX)
add_definitions(-std=c++11)
endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
file(GLOB SRCS *.cc *.h)
+3 -3
View File
@@ -1,6 +1,6 @@
if(UNIX)
add_definitions(-std=c++11)
endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
file(GLOB SRCS *.cc *.h)