Blame view

CMakeLists.txt 580 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
  
976553af   Peter M. Groen   Disabled test- an...
12
13
14
15
16
17
18
19
20
21
  if(ENABLE_EXAMPLES)
      add_subdirectory(examples/connect)
      add_subdirectory(examples/pub)
      add_subdirectory(examples/sub)
      add_subdirectory(examples/subunsub)
  endif()
  
  if(ENABLE_TESTS)
      add_subdirectory(test)
  endif()
68753efb   Peter M. Groen   [FIX] Setting up ...
22
  
bbca8c1a   Peter M. Groen   Added comments to...
23
24
  include(packaging)
  package_component()