crpc/CMakeLists.txt

23 lines
626 B
CMake
Raw Normal View History

2023-12-02 00:32:54 +08:00
cmake_minimum_required(VERSION 3.26)
project(crpc)
find_package(antlr4-runtime CONFIG REQUIRED)
set(CMAKE_CXX_STANDARD 17)
FILE(GLOB_RECURSE SRC_LIST ${PROJECT_SOURCE_DIR}/src/*.cpp)
add_executable(crpc
main.cpp
src/item.cpp
src/message.cpp
${SRC_LIST}
src/rpc.cpp
src/service.cpp
src/plugins/c/c_message_plugin.cpp
2023-12-02 01:56:16 +08:00
src/plugins/c/generators/c_item.cpp
2023-12-02 00:32:54 +08:00
)
target_link_libraries(crpc PRIVATE antlr4_static)
target_include_directories(crpc PRIVATE /opt/dev/vcpkg/installed/arm64-osx/include/antlr4-runtime)
target_include_directories(crpc PRIVATE src/gen/ src/)