2015-04-01 10:35:37 +00:00
|
|
|
set(BII_TESTS_WORKING_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
2015-01-31 16:14:59 +00:00
|
|
|
# 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()
|
|
|
|
|
|
|
|
ADD_BIICODE_TARGETS()
|
|
|
|
|
|
|
|
string(REPLACE " " ";" REPLACED_FLAGS ${CMAKE_CXX_FLAGS})
|
2015-04-01 10:35:37 +00:00
|
|
|
target_compile_options(${BII_BLOCK_TARGET} INTERFACE ${REPLACED_FLAGS})
|