We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db6dd3f commit a2c9197Copy full SHA for a2c9197
CMakeLists.txt
@@ -0,0 +1,9 @@
1
+cmake_minimum_required(VERSION 3.7)
2
+project(open-simulation-interface)
3
+find_package(Protobuf 2.6.1 REQUIRED)
4
+file(GLOB OSI_PROTO_FILES osi_*.proto)
5
+PROTOBUF_GENERATE_CPP(PROTO_SRC PROTO_HEADER ${OSI_PROTO_FILES})
6
+add_library(open_simulation_interface STATIC ${PROTO_SRC} ${PROTO_HEADER})
7
+target_include_directories(open_simulation_interface PUBLIC ${PROTOBUF_INCLUDE_DIR})
8
+target_link_libraries(open_simulation_interface PUBLIC ${PROTOBUF_LIBRARY})
9
+set (OSI_PROTOBUF_INCLUDE_PATH ${CMAKE_CURRENT_BINARY_DIR} CACHE INTERNAL "[OSI] Path to generated protobuf files for the open simulation interface.")
0 commit comments