On 10/07/2010 11:28 AM, Michael Wild wrote:
> function(add_test_executable name)
>   add_executable(${name} EXCLUDE_FROM_ALL ${ARGN})
>   if(NOT TARGET test-exes)
>     add_custom_target(test-exes)
>   endif()
>   add_dependencies(test-exes ${name})
> endfunction()
> 
> add_custom_target(check
>   COMMAND ${CMAKE_CTEST_COMMAND}
>   WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
>   COMMENT "Running ctest")
> add_dependencies(check test-exes)

That's great. Thank you.

-- 
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

        BigTPoker - Poker fun and games

                http://BigTPoker.com/
        
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to