CMakeLists.txt 664 B

12345678910111213141516
  1. cmake_minimum_required(VERSION 3.0.0)
  2. project(remote_server VERSION 0.1.0)
  3. set(CURDIR ${CMAKE_CURRENT_LIST_DIR})
  4. find_package(Protobuf REQUIRED)
  5. include_directories(${Protobuf_INCLUDE_DIRS})
  6. include_directories(${CURDIR}/../protocol/linux/)
  7. file(GLOB proto_srcs ${CURDIR}/../protocol/linux/remote.pb.cc)
  8. file(GLOB common_srcs ${CURDIR}/../common/iobuffer.cpp)
  9. message(${CURDIR}/../protocol/linux/)
  10. file(GLOB native_srcs "*.cpp")
  11. add_executable(remote_server ${native_srcs} ${proto_srcs} ${common_srcs})
  12. target_link_libraries(remote_server ${Protobuf_LIBRARIES})
  13. target_link_libraries(remote_server mysqlclient)
  14. target_link_libraries(remote_server mysqlcppconn)