This commit is contained in:
Matthias
2017-07-24 16:37:13 +02:00
parent 3d8f381bae
commit 6c3a14afc8
14 changed files with 266 additions and 2 deletions
+2 -1
View File
@@ -56,7 +56,7 @@ ADD_DEFINITIONS( -std=c++11 -DSPARSELU_SKIP_BOTS_MAIN )
function(add_wfr_utest utest_name add_inc)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${utest_name})
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${utest_name}/${utest_name}.cpp ${CMAKE_CURRENT_BINARY_DIR}/${utest_name}/${utest_name}.h
COMMAND ${IWIR2WFR_EXE} -i ${IWIR_DIR}/${utest_name}.iwir -o ${CMAKE_CURRENT_BINARY_DIR}/${utest_name}/${utest_name} -skipmain -printir -repoconfig ${REPO_DIR}/${utest_name}.properties
COMMAND ${IWIR2WFR_EXE} -i ${IWIR_DIR}/${utest_name}.iwir -o ${CMAKE_CURRENT_BINARY_DIR}/${utest_name}/${utest_name} -printir -repoconfig ${REPO_DIR}/${utest_name}.properties
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${utest_name}
)
add_executable(${utest_name}.bin ${CMAKE_CURRENT_BINARY_DIR}/${utest_name}/${utest_name}.cpp ${ARGN})
@@ -74,6 +74,7 @@ endfunction()
add_wfr_utest(for1 "")
add_wfr_utest(foreach1 "")
add_wfr_utest(if1 "")
#add_wfr_utest(if01 "")
add_wfr_utest(if2 "")
add_wfr_utest(pfor1 "")
add_wfr_utest(pforeach1 "")