More CMake tweaking.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Tue, 16 Feb 2010 23:29:08 +0000 (15:29 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Tue, 16 Feb 2010 23:29:08 +0000 (15:29 -0800)
kvstore/CMakeLists.txt

index dc8b9cd..20e5d75 100644 (file)
@@ -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)
+