Merge lp:~dandrader/unity-api/no-tests into lp:unity-api

Proposed by Daniel d'Andrada on 2015-07-03
Status: Merged
Approved by: Albert Astals Cid on 2015-07-03
Approved revision: 175
Merged at revision: 180
Proposed branch: lp:~dandrader/unity-api/no-tests
Merge into: lp:unity-api
Diff against target: 24 lines (+7/-3)
1 file modified
CMakeLists.txt (+7/-3)
To merge this branch: bzr merge lp:~dandrader/unity-api/no-tests
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) 2015-07-03 Approve on 2015-07-03
PS Jenkins bot continuous-integration Approve on 2015-07-03
Review via email: mp+263782@code.launchpad.net

Commit Message

Add a NO_TESTS options to cmake

Run cmake with -DNO_TESTS=true to skip building tests. Makes for a way faster build.

Description of the Change

Like we already have in qtmir and in unity8.

Makes a huge different here, as pretty much all the stuff we actually compile are tests. unity-api itself is just a bunch of headers and .pc files.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2015-03-10 09:48:43 +0000
3+++ CMakeLists.txt 2015-07-03 14:10:08 +0000
4@@ -154,13 +154,17 @@
5 set(LIB_INSTALL_PREFIX lib/${CMAKE_LIBRARY_ARCHITECTURE})
6
7 # Tests
8-include(CTest)
9-enable_testing()
10+if (NOT NO_TESTS)
11+ include(CTest)
12+ enable_testing()
13+ add_subdirectory(test)
14+else()
15+ message(STATUS "Tests disabled")
16+endif()
17
18 # add subdirectories to build
19 add_subdirectory(include)
20 add_subdirectory(src)
21-add_subdirectory(test)
22 add_subdirectory(data)
23
24 if (cmake_build_type_lower MATCHES coverage)

Subscribers

People subscribed via source and target branches

to all changes: