22 lines
582 B
CMake
22 lines
582 B
CMake
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
|
|
)
|
|
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/)
|
|
|