1set(BII_TESTS_WORKING_DIR ${CMAKE_CURRENT_SOURCE_DIR}) 2# Copying data files to project/bin folder 3if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/samples") 4 file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/samples/monster.fbs" 5 "${CMAKE_CURRENT_SOURCE_DIR}/samples/monsterdata.json" 6 DESTINATION 7 "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/samples") 8endif() 9if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tests") 10 file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/tests" 11 DESTINATION 12 "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}") 13endif() 14 15ADD_BIICODE_TARGETS() 16 17string(REPLACE " " ";" REPLACED_FLAGS ${CMAKE_CXX_FLAGS}) 18target_compile_options(${BII_BLOCK_TARGET} INTERFACE ${REPLACED_FLAGS})