Changed the hard coded path used in the qtjsruntime tests

The hard coded path does not work on Windows as MSBuild creates the target
output in a folder dependant on the build configuration.

Instead of using a hard coded path we can use the target name here as the
add_executable command will create the executable based on the platform
specific location

http://www.cmake.org/cmake/help/v2.8.12/cmake.html#command:add_executable
This commit is contained in:
Satvik Kumar
2014-02-24 22:19:40 +11:00
parent cf2ece054f
commit 1ece2be1fc
+1 -1
View File
@@ -23,7 +23,7 @@ if (QT4_FOUND)
COPY_FILES(tests_qtjsruntimetest ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}/_qtjsruntimetest ${TESTS_TESTFILES} )
add_custom_target(qtjsruntimetest ALL
COMMAND ${CMAKE_BINARY_DIR}/programs/qtjsruntime/qtjsruntime ${RUNTIME} tests.js
COMMAND qtjsruntime ${RUNTIME} tests.js
WORKING_DIRECTORY _qtjsruntimetest
DEPENDS NodeJS ${tests_qtjsruntimetest} qtjsruntime manifest.json-target
)