Commit fa059927 authored by Branislav Katreniak's avatar Branislav Katreniak

cmake: improve comments

parent 33718432
...@@ -56,6 +56,7 @@ endif() ...@@ -56,6 +56,7 @@ endif()
if(CAPNP_LITE) if(CAPNP_LITE)
set(CAPNP_LITE_FLAG "-DCAPNP_LITE") set(CAPNP_LITE_FLAG "-DCAPNP_LITE")
# This flag is attached as PUBLIC target_compile_definition to kj target
else() else()
set(CAPNP_LITE_FLAG) set(CAPNP_LITE_FLAG)
endif() endif()
......
# Example usage: # Example usage:
# find_package(CapnProto) # find_package(CapnProto)
# capnp_generate_cpp(CAPNP_SRCS CAPNP_HDRS schema.capnp) # capnp_generate_cpp(CAPNP_SRCS CAPNP_HDRS schema.capnp)
# include_directories(${CMAKE_CURRENT_BINARY_DIR})
# add_executable(foo main.cpp ${CAPNP_SRCS}) # add_executable(foo main.cpp ${CAPNP_SRCS})
# target_link_libraries(foo CapnProto::capnp CapnProto::capnp-rpc) # target_link_libraries(foo CapnProto::capnp)
# #
# If you are using not using the RPC features you can remove # If you are using RPC features, use 'CapnProto::capnp-rpc'
# 'CapnProto::capnp-rpc' from the target_link_libraries call # in target_link_libraries call.
# #
@PACKAGE_INIT@ @PACKAGE_INIT@
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
# capnp_generate_cpp(CAPNP_SRCS CAPNP_HDRS schema.capnp) # capnp_generate_cpp(CAPNP_SRCS CAPNP_HDRS schema.capnp)
# include_directories(${CMAKE_CURRENT_BINARY_DIR}) # include_directories(${CMAKE_CURRENT_BINARY_DIR})
# add_executable(foo main.cpp ${CAPNP_SRCS}) # add_executable(foo main.cpp ${CAPNP_SRCS})
# target_link_libraries(foo CapnProto::capnp) # target_link_libraries(foo CapnProto::capnp-rpc)
# #
# If you are using not using the RPC features you can remove # If you are using not using the RPC features you can use
# 'CapnProto::capnp-rpc' from the target_link_libraries call # 'CapnProto::capnp' in target_link_libraries call
# #
# Configuration variables (optional): # Configuration variables (optional):
# CAPNPC_OUTPUT_DIR # CAPNPC_OUTPUT_DIR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment