Skip to content

Commit

Permalink
install api/flatbuffers/* depending on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Russel Waters committed Feb 11, 2020
1 parent 6043500 commit 3927179
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nano/ipc_flatbuffers_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ add_subdirectory(../../flatbuffers ${CMAKE_CURRENT_BINARY_DIR}/flatbuffers-build
# whenever any of the fbs files change. Note that while this supports multiple fbs files,
# we currently only use one, to avoid include-file issues with certain language bindings.
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/generated/flatbuffers)
if (APPLE)
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../api/flatbuffers/ DESTINATION Nano.app/api/flatbuffers)
else()
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../api/flatbuffers/ DESTINATION ./api/flatbuffers)
endif()

file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/../../api/flatbuffers/nanoapi*.fbs")
foreach(file ${files})
Expand Down

0 comments on commit 3927179

Please sign in to comment.