Revision 8a80c432

View differences:

client/cpp/CMakeLists.txt
1 1
PROJECT(hlrc_client_cpp)
2 2

  
3
if(NOT "${CMAKE_CXX_STANDARD}")
4
  set(CMAKE_CXX_STANDARD 11)
5
endif()
6
set(CMAKE_CXX_STANDARD_REQUIRED ON)
7
set(CMAKE_CXX_EXTENSIONS OFF)
8

  
9 3
#debug?
10 4
set(CMAKE_BUILD_TYPE Debug)
11 5

  
......
52 46
ENDIF(catkin_FOUND)
53 47

  
54 48
add_definitions ("-Wall")
55
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -fstack-protector-all ")
49
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all ")
56 50
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" )
57 51

  
58 52
#search for Boost
server/CMakeLists.txt
1 1
cmake_minimum_required(VERSION 2.8.3)
2 2
project(hlrc_server)
3 3

  
4
if(NOT "${CMAKE_CXX_STANDARD}")
5
  set(CMAKE_CXX_STANDARD 11)
6
endif()
7
set(CMAKE_CXX_STANDARD_REQUIRED ON)
8
set(CMAKE_CXX_EXTENSIONS OFF)
9

  
10 4
INCLUDE(FindPkgConfig)
11 5

  
12 6
#######################################
......
106 100
    ${DUMMY_HEADER_LIST}
107 101
)
108 102

  
109
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
110

  
111 103
#create example:
112 104
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} ${catkin_LIBRARIES} ${humotion_LIBRARIES} ${AO_LIBRARIES})
113 105
set_property(TARGET ${PROJECT_NAME} PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)

Also available in: Unified diff