Reflecting flatbuffers
This commit is contained in:
@@ -108,6 +108,8 @@ function(bigfoot_create_package_tests ParentFolder BigfootDependencies)
|
||||
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER Tests/Bigfoot/${ParentFolder})
|
||||
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "$<TARGET_FILE_DIR:${PROJECT_NAME}>")
|
||||
|
||||
##################COPY FIXTURE FOLDER###################
|
||||
|
||||
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Fixture)
|
||||
|
||||
@@ -70,6 +70,7 @@ function(bigfoot_compile_flatbuffers BigfootDependencies)
|
||||
|
||||
execute_process(
|
||||
COMMAND ${FLATBUFFERS_FLATC_EXECUTABLE}
|
||||
--binary
|
||||
--cpp
|
||||
${IncludeFlags}
|
||||
--keep-prefix
|
||||
@@ -87,13 +88,13 @@ function(bigfoot_compile_flatbuffers BigfootDependencies)
|
||||
--cpp-include "EASTL/unique_ptr.h"
|
||||
--cpp-include "EASTL/string.h"
|
||||
-o "${SOURCE_DIRECTORY}"
|
||||
"${SOURCE_FILE}"
|
||||
--schema "${SOURCE_FILE}"
|
||||
)
|
||||
|
||||
execute_process(
|
||||
COMMAND ${BIN2CPP_EXECUTABLE}
|
||||
--input "${SOURCE_FILE}"
|
||||
--output "${SOURCE_DIRECTORY}/${SOURCE_NAME_WE}.fbs_generated.hpp"
|
||||
--input "${SOURCE_DIRECTORY}/${SOURCE_NAME_WE}.bfbs"
|
||||
--output "${SOURCE_DIRECTORY}/${SOURCE_NAME_WE}.bfbs_generated.hpp"
|
||||
--arrayType eastl::array
|
||||
--arrayInclude <EASTL/array.h>
|
||||
--namespace Bigfoot
|
||||
|
||||
Reference in New Issue
Block a user