From: <ai...@us...> - 2010-05-10 17:05:24
|
Revision: 10982 http://plplot.svn.sourceforge.net/plplot/?rev=10982&view=rev Author: airwin Date: 2010-05-10 17:05:18 +0000 (Mon, 10 May 2010) Log Message: ----------- Implement a test target corresponding to every device driver. Modified Paths: -------------- trunk/drivers/CMakeLists.txt Modified: trunk/drivers/CMakeLists.txt =================================================================== --- trunk/drivers/CMakeLists.txt 2010-05-10 16:47:09 UTC (rev 10981) +++ trunk/drivers/CMakeLists.txt 2010-05-10 17:05:18 UTC (rev 10982) @@ -73,7 +73,6 @@ ) endif(WIN32 AND NOT CYGWIN) get_target_property(test-drv-info_LOCATION test-drv-info LOCATION) - set(test_dyndrivers_FDEPENDS) set(test_dyndrivers_TDEPENDS test-drv-info) endif(TEST_DYNDRIVERS AND NOT CMAKE_CROSSCOMPILING) @@ -185,7 +184,8 @@ LOCATION ) add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test_dyndrivers_dir/${SOURCE_ROOT_NAME}.rc + OUTPUT + ${CMAKE_CURRENT_BINARY_DIR}/test_dyndrivers_dir/${SOURCE_ROOT_NAME}.rc COMMAND test-drv-info ${SOURCE_ROOT_NAME} > ${CMAKE_CURRENT_BINARY_DIR}/test_dyndrivers_dir/${SOURCE_ROOT_NAME}.rc @@ -196,10 +196,15 @@ ${${SOURCE_ROOT_NAME}_LOCATION} ${test-drv-info_LOCATION} ) - list(APPEND test_dyndrivers_FDEPENDS + add_custom_target(test_${SOURCE_ROOT_NAME} + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/test_dyndrivers_dir/${SOURCE_ROOT_NAME}.rc ) - list(APPEND test_dyndrivers_TDEPENDS ${SOURCE_ROOT_NAME}) + add_dependencies(test_${SOURCE_ROOT_NAME} + test-drv-info + ${SOURCE_ROOT_NAME} + ) + list(APPEND test_dyndrivers_TDEPENDS test_${SOURCE_ROOT_NAME}) endif(TEST_DYNDRIVERS AND NOT CMAKE_CROSSCOMPILING) install(TARGETS ${SOURCE_ROOT_NAME} @@ -213,7 +218,6 @@ endforeach(SOURCE_ROOT_NAME ${DRIVERS_LIST}) if(TEST_DYNDRIVERS AND NOT CMAKE_CROSSCOMPILING) add_custom_target(test_dyndrivers ALL - DEPENDS ${test_dyndrivers_FDEPENDS} ) add_dependencies(test_dyndrivers ${test_dyndrivers_TDEPENDS}) endif(TEST_DYNDRIVERS AND NOT CMAKE_CROSSCOMPILING) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |