diff options
author | franramirez688 <franchuti688@gmail.com> | 2015-01-31 11:14:59 -0500 |
---|---|---|
committer | Wouter van Oortmerssen <wvo@google.com> | 2015-02-09 14:57:17 -0800 |
commit | da0f096ba220ec49bafc0743773a46524dd79832 (patch) | |
tree | b8bc40c0b0a0ce6a880bf3babb46a9cf93063e85 /CMake | |
parent | 36fe9d539f53e4b653ed172a1f90a803492ecf74 (diff) | |
download | flatbuffers-da0f096ba220ec49bafc0743773a46524dd79832.tar.gz flatbuffers-da0f096ba220ec49bafc0743773a46524dd79832.tar.bz2 flatbuffers-da0f096ba220ec49bafc0743773a46524dd79832.zip |
Added biicode support via biicode.conf and CMake/biicode.cmake
Change-Id: Id9750cceaa57aad3c969cf12299aa60f21c29074
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/biicode.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/CMake/biicode.cmake b/CMake/biicode.cmake new file mode 100644 index 00000000..225b669a --- /dev/null +++ b/CMake/biicode.cmake @@ -0,0 +1,22 @@ +# Initializes block variables +INIT_BIICODE_BLOCK() + +# Copying data files to project/bin folder +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/samples") + file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/samples/monster.fbs" + "${CMAKE_CURRENT_SOURCE_DIR}/samples/monsterdata.json" + DESTINATION + "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/samples") +endif() +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tests") + file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/tests" + DESTINATION + "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}") +endif() + +# Actually create targets: EXEcutables and libraries. +ADD_BIICODE_TARGETS() + +string(REPLACE " " ";" REPLACED_FLAGS ${CMAKE_CXX_FLAGS}) +target_compile_options(${BII_BLOCK_TARGET} INTERFACE ${REPLACED_FLAGS}) +target_include_directories(${BII_BLOCK_TARGET} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)
\ No newline at end of file |