Commit 976553afa08a44b73288ba7a728229b26ef332d3

Authored by Peter M. Groen
1 parent 8660a680

Disabled test- and examples build

Showing 1 changed file with 10 additions and 5 deletions
CMakeLists.txt
... ... @@ -8,12 +8,17 @@ include(projectheader)
8 8 project_header(osdev_mqtt)
9 9  
10 10 add_subdirectory(src)
11   -add_subdirectory(examples/connect)
12   -add_subdirectory(examples/pub)
13   -add_subdirectory(examples/sub)
14   -add_subdirectory(examples/subunsub)
15 11  
16   -add_subdirectory(test)
  12 +if(ENABLE_EXAMPLES)
  13 + add_subdirectory(examples/connect)
  14 + add_subdirectory(examples/pub)
  15 + add_subdirectory(examples/sub)
  16 + add_subdirectory(examples/subunsub)
  17 +endif()
  18 +
  19 +if(ENABLE_TESTS)
  20 + add_subdirectory(test)
  21 +endif()
17 22  
18 23 include(packaging)
19 24 package_component()
... ...