From: Michael Vrable Date: Tue, 16 Feb 2010 23:29:08 +0000 (-0800) Subject: More CMake tweaking. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=6c5c93c1d6901dee392a809cea3b1eb3efa23f2f;p=bluesky.git More CMake tweaking. --- diff --git a/kvstore/CMakeLists.txt b/kvstore/CMakeLists.txt index dc8b9cd..20e5d75 100644 --- a/kvstore/CMakeLists.txt +++ b/kvstore/CMakeLists.txt @@ -1,10 +1,3 @@ -add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kvstore.pb.cc - ${CMAKE_CURRENT_BINARY_DIR}/kvstore.pb.h - COMMAND protoc --cpp_out=${CMAKE_CURRENT_BINARY_DIR} - --proto_path=${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/kvstore.proto - DEPENDS kvstore.proto) - include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_library(protobufrpc protobufrpc.cc socket_pool.cc workqueue.cc) @@ -24,3 +17,11 @@ target_link_libraries(kvstore kvservice boost_thread-mt boost_regex-mt boost_system-mt boost_program_options-mt db protobuf protobufrpc pthread) + +add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kvstore.pb.cc + ${CMAKE_CURRENT_BINARY_DIR}/kvstore.pb.h + COMMAND protoc --cpp_out=${CMAKE_CURRENT_BINARY_DIR} + --proto_path=${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/kvstore.proto + DEPENDS kvstore.proto) +