Blame view

CMakeLists.txt 688 Bytes
51becbde   Peter M. Groen   Committed the ent...
1
  cmake_minimum_required(VERSION 3.0)
bbca8c1a   Peter M. Groen   Added comments to...
2
  project(osdev_mqtt)
199d7075   Peter M. Groen   implement logging...
3
  LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake)
51becbde   Peter M. Groen   Committed the ent...
4
  
59367614   Peter M. Groen   Install script..
5
6
  # ==============================================================================
  # = Include build information
51becbde   Peter M. Groen   Committed the ent...
7
  include(projectheader)
51becbde   Peter M. Groen   Committed the ent...
8
9
  project_header(osdev_mqtt)
  
51becbde   Peter M. Groen   Committed the ent...
10
  add_subdirectory(src)
51becbde   Peter M. Groen   Committed the ent...
11
  
bf715122   Peter M. Groen   Added CLI Tools
12
  if(ENABLE_EXAMPLES STREQUAL "ON")
976553af   Peter M. Groen   Disabled test- an...
13
14
15
16
17
18
      add_subdirectory(examples/connect)
      add_subdirectory(examples/pub)
      add_subdirectory(examples/sub)
      add_subdirectory(examples/subunsub)
  endif()
  
bf715122   Peter M. Groen   Added CLI Tools
19
  if(ENABLE_TESTS STREQUAL "ON")
976553af   Peter M. Groen   Disabled test- an...
20
21
      add_subdirectory(test)
  endif()
68753efb   Peter M. Groen   [FIX] Setting up ...
22
  
bf715122   Peter M. Groen   Added CLI Tools
23
24
25
26
  if(ENABLE_TOOLS STREQUAL "ON")
      add_subdirectory(tools/publish_cli)
  endif()
  
bbca8c1a   Peter M. Groen   Added comments to...
27
28
  include(packaging)
  package_component()