12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- cmake_minimum_required(VERSION 3.15)
- project(notify_manage)
- set(CMAKE_CXX_STANDARD 14)
- FIND_PACKAGE(Protobuf REQUIRED)
- include_directories(
- /usr/local/include
- ${PROTOBUF_INCLUDE_DIRS}
- communication
- message
- error_code
- tool
- notify_manage
- led
- )
- aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/error_code error_src )
- aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/message message_src )
- aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/tool TOOL_SRC )
- aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/communication COMMUNICATION_SRC )
- aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/notify_manage NOTIFY_MANAGE )
- aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/led LED )
- add_executable(notify_manage
- main.cpp
- ${error_src}
- ${message_src}
- ${TOOL_SRC}
- ${COMMUNICATION_SRC}
- ${NOTIFY_MANAGE}
- ${LED}
- )
- target_link_libraries(notify_manage
- /usr/local/lib/libglog.a
- /usr/local/lib/libgflags.a
- nnxx
- nanomsg
- ${PROTOBUF_LIBRARIES}
- -lpthread
- )
|