summaryrefslogtreecommitdiff
path: root/tools/cmake
diff options
context:
space:
mode:
authorAlex Kutsan <akutsan@luxoft.com>2017-03-03 12:02:50 +0200
committerJacob Keeler <jacob.keeler@livioradio.com>2017-05-16 10:10:01 -0400
commit30d73a1506411d7b779843a37dffc4bf759c32e2 (patch)
tree0751d21f824997a35d7e044516a95234c7adf0ee /tools/cmake
parent5a70594cbc053230d8132516ac99339768e4a664 (diff)
downloadsdl_core-30d73a1506411d7b779843a37dffc4bf759c32e2.tar.gz
Improve a bit code of test scripts build
moved redundant namespace in local scope Added test main to list of sources
Diffstat (limited to 'tools/cmake')
-rw-r--r--tools/cmake/helpers/sources.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/cmake/helpers/sources.cmake b/tools/cmake/helpers/sources.cmake
index 0315b905d9..657197eaac 100644
--- a/tools/cmake/helpers/sources.cmake
+++ b/tools/cmake/helpers/sources.cmake
@@ -143,10 +143,11 @@ function(create_test NAME SOURCES LIBS)
endfunction()
function(create_cotired_test NAME SOURCES LIBS)
+ list(APPEND SOURCES
+ ${CMAKE_SOURCE_DIR}/src/components/test_main.cc)
add_executable(
${NAME}
EXCLUDE_FROM_ALL
- ${CMAKE_SOURCE_DIR}/src/components/test_main.cc
${SOURCES}
)
# TODO: Fix problems with Cotire on Windows and Qt APPLINK-28060