Advertisement
Guest User

Untitled

a guest
Sep 25th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.37 KB | None | 0 0
  1. file(GLOB flatbuffer_files
  2.         "${CMAKE_CURRENT_SOURCE_DIR}/Server/Packets/*.h"
  3.         "${CMAKE_CURRENT_SOURCE_DIR}/Server/Packets/*.cc"
  4.         )
  5.  
  6. add_library(
  7.     Common
  8.         SHARED
  9.         Config.cpp
  10.         Config.h
  11.         Logger.cpp
  12.         Logger.h
  13.         Database/MySQLConnection.h
  14.         Database/MySQLConnection.cpp
  15.         Database/MySQLTable.h
  16.         Database/MySQLTable.cpp
  17.         Banner.cpp
  18.         Banner.h
  19.         Database/MySQLTableBase.cpp
  20.         Database/MySQLTableBase.h
  21.         Memory/Memory.cpp
  22.         Memory/Memory.h
  23.         Server/Server.cpp
  24.         Server/Server.h
  25.         Server/Client.cpp
  26.         Server/Client.h
  27.         Server/Client.cpp Server/Client.h
  28.         Server/Protocol/Opcodes.cpp
  29.         Server/Protocol/Opcodes.h
  30.         Server/Protocol/ServerOpcode.h
  31.         Server/Packet.cpp
  32.         Server/Packet.h
  33.         DataSchemas/Account.h
  34.         DataSchemas/AccountRole.h
  35.         ${flatbuffer_files}
  36. )
  37.  
  38. target_include_directories(Common PUBLIC /usr/local/mysql/connector-c++-/include /usr/local/include/flatbuffers)
  39. target_link_libraries(Common PUBLIC /usr/local/mysql/connector-c++-/lib64/debug/libmysqlcppconn8.so ${CMAKE_THREAD_LIBS_INIT} ${Boost_LIBRARIES} flatbuffers gRPC::grpc++)
  40. target_include_directories(Common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${MYSQL_LIBRARY} ${CMAKE_CURRENT_SOURCE_DIR}/Server/Packets)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement