diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-12-08 15:45:46 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:13 -0300 |
commit | 7611d0a4d22dd60a9236623c810e25f7e12ad377 (patch) | |
tree | 1a6b8ec4cc73be3637c06304802ba2223f5d4186 /tests | |
parent | b56272a3b61835045d061afed4326ff657e4230c (diff) |
Add option to install the tests binaries.
Reviewer: Hugo Lima <hugo.lima@openbossa.org>
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 959d4f48b..575865e19 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -5,6 +5,9 @@ macro(declare_test testname) include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${apiextractor_SOURCE_DIR}) target_link_libraries(${testname} ${QT_QTTEST_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} apiextractor) add_test(${testname} ${testname}) + if (INSTALL_TESTS) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${testname} DESTINATION share/apiextractor${apiextractor_SUFFIX}/tests) + endif() endmacro(declare_test testname) declare_test(testabstractmetaclass) |