diff options
Diffstat (limited to 'test/ctest')
-rw-r--r-- | test/ctest/scripts/test_generated_c.cmake | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/test/ctest/scripts/test_generated_c.cmake b/test/ctest/scripts/test_generated_c.cmake index c170639..b130d29 100644 --- a/test/ctest/scripts/test_generated_c.cmake +++ b/test/ctest/scripts/test_generated_c.cmake @@ -15,36 +15,6 @@ if (CMD_RESULT) endif () message(STATUS "time for transforming to c machine") -# set(COMPILE_CMD_OBJ -# "-c" "${OUTDIR}/${TEST_FILE_NAME}.machine.c" -# "-o" "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" -# "-Ofast" "-ansi" "-m16") -# -# message(STATUS "${CC_BIN} ${COMPILE_CMD_OBJ}") -# execute_process( -# COMMAND time -p ${CC_BIN} ${COMPILE_CMD_OBJ} -# WORKING_DIRECTORY ${OUTDIR} RESULT_VARIABLE CMD_RESULT) -# if(CMD_RESULT) -# message(FATAL_ERROR "Error running gcc ${CC_BIN}: ${CMD_RESULT}") -# endif() -# file (SIZE "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" BINARY_SIZE) -# message("Size of compiled unit optimized for speed: ${BINARY_SIZE}") -# -# set(COMPILE_CMD_OBJ -# "-c" "${OUTDIR}/${TEST_FILE_NAME}.machine.c" -# "-o" "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" -# "-Os" "-ansi" "-m16") -# -# message(STATUS "${CC_BIN} ${COMPILE_CMD_OBJ}") -# execute_process( -# COMMAND time -p ${CC_BIN} ${COMPILE_CMD_OBJ} -# WORKING_DIRECTORY ${OUTDIR} RESULT_VARIABLE CMD_RESULT) -# if(CMD_RESULT) -# message(FATAL_ERROR "Error running gcc ${CC_BIN}: ${CMD_RESULT}") -# endif() -# file (SIZE "${OUTDIR}/${TEST_FILE_NAME}.machine.c.o" BINARY_SIZE) -# message("Size of compiled unit optimized for size: ${BINARY_SIZE}") - set(COMPILE_CMD_BIN "-O0" "-std=c++11" @@ -53,6 +23,7 @@ set(COMPILE_CMD_BIN "-o" "${OUTDIR}/${TEST_FILE_NAME}" "-L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" "-L${PROJECT_BINARY_DIR}/deps/xerces-c/lib" + "-L/opt/local/lib" "-luscxml" "-lxerces-c" "-include" "${OUTDIR}/${TEST_FILE_NAME}.machine.c" |