- cmake_minimum_required(VERSION 3.0.0)
- project(remote_server VERSION 0.1.0)
- set(CURDIR ${CMAKE_CURRENT_LIST_DIR})
- find_package(Protobuf REQUIRED)
-
- include_directories(${Protobuf_INCLUDE_DIRS})
- include_directories(${CURDIR}/../protocol/linux/)
- file(GLOB proto_srcs ${CURDIR}/../protocol/linux/remote.pb.cc)
- file(GLOB common_srcs ${CURDIR}/../common/iobuffer.cpp)
- message(${CURDIR}/../protocol/linux/)
- file(GLOB native_srcs "*.cpp")
- add_executable(remote_server ${native_srcs} ${proto_srcs} ${common_srcs})
- target_link_libraries(remote_server ${Protobuf_LIBRARIES})
- target_link_libraries(remote_server mysqlclient)
- target_link_libraries(remote_server mysqlcppconn)
|