Commit da0f096b authored by franramirez688's avatar franramirez688 Committed by Wouter van Oortmerssen

Added biicode support via biicode.conf and CMake/biicode.cmake

Change-Id: Id9750cceaa57aad3c969cf12299aa60f21c29074
parent 36fe9d53
# 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
......@@ -74,6 +74,12 @@ if(FLATBUFFERS_CODE_COVERAGE)
"${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
endif()
if(BIICODE)
# Execute biicode building
include(CMake/biicode.cmake)
return()
endif(BIICODE)
include_directories(include)
if(FLATBUFFERS_BUILD_FLATC)
......
# Biicode configuration file
[paths]
# Local directories to look for headers (within block)
include
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment