Mercurial > trustbridge
comparison ui/tests/CMakeLists.txt @ 37:00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Make profiling an option, fix static_check target
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 14 Mar 2014 09:01:19 +0000 |
parents | cbd57d767dfa |
children | 5910bf9016cd |
comparison
equal
deleted
inserted
replaced
36:81183b721b51 | 37:00aa5fa3c2fb |
---|---|
7 macro(add_m13_test _source _additional_sources) | 7 macro(add_m13_test _source _additional_sources) |
8 set(_test ${_source}) | 8 set(_test ${_source}) |
9 get_filename_component(_name ${_source} NAME_WE) | 9 get_filename_component(_name ${_source} NAME_WE) |
10 add_executable(${_name} ${_test} ${_additional_sources}) | 10 add_executable(${_name} ${_test} ${_additional_sources}) |
11 add_test(m13-${_name} ${_name}) | 11 add_test(m13-${_name} ${_name}) |
12 target_link_libraries(${_name} Qt5::Test Qt5::Widgets ${EXTRA_STATIC_LIBS}) | 12 target_link_libraries(${_name} Qt5::Test Qt5::Widgets |
13 ${EXTRA_STATIC_LIBS} | |
14 ${POLARSSL_LIBRARIES}) | |
13 endmacro() | 15 endmacro() |
14 | 16 |
15 # Add the current source dir to the definition | 17 # Add the current source dir to the definition |
16 # so that it can be used in file names in the tests. | 18 # so that it can be used in file names in the tests. |
17 add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") | 19 add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") |