Skip to content

Commit d7cd47f

Browse files
committed
Incorporated review comments
1 parent 0a915fa commit d7cd47f

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

CMakeLists.txt

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@
55

66
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
77

8-
option(UNITTESTS "Run unit tests only." OFF)
9-
10-
if(UNITTESTS)
11-
12-
project(unittests)
13-
14-
enable_testing()
15-
16-
add_subdirectory(UNITTESTS)
17-
add_subdirectory(drivers/tests/UNITTESTS)
18-
add_subdirectory(connectivity/cellular/tests/UNITTESTS)
19-
8+
option(MBED_BUILD_UNITTESTS "Run unit tests only." OFF)
9+
10+
if(MBED_BUILD_UNITTESTS)
11+
project(unittests)
12+
enable_testing()
13+
14+
add_subdirectory(UNITTESTS)
15+
add_subdirectory(${MBED_PATH}/drivers/tests/UNITTESTS EXCLUDE_FROM_ALL)
16+
add_subdirectory(${MBED_PATH}/connectivity/cellular/tests/UNITTESTS EXCLUDE_FROM_ALL)
2017
else()
2118

2219
include(${MBED_CONFIG_PATH}/mbed_config.cmake)

0 commit comments

Comments
 (0)