AW-Sm-Rpc/utils/AWSMProtobuf/CMakeLists.txt
2024-01-18 15:56:18 +08:00

23 lines
443 B
CMake

CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
PROJECT(AWSMProtobuf)
ADD_COMPILE_OPTIONS(-fPIC)
AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR}/src src_list)
ADD_LIBRARY(${PROJECT_NAME} STATIC ${src_list})
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME}
PUBLIC
${PROJECT_SOURCE_DIR}/include)
TARGET_LINK_DIRECTORIES(${PROJECT_NAME}
PRIVATE
${CMAKE_SOURCE_DIR}/lib
)
TARGET_LINK_LIBRARIES(${PROJECT_NAME}
PRIVATE
protobuf-c
)