51becbde
Peter M. Groen
Committed the ent...
|
1
|
cmake_minimum_required(VERSION 3.0)
|
b5d9e433
Peter M. Groen
Fixed License Hea...
|
2
3
4
5
6
7
8
9
10
11
12
13
|
# ==============================================================================
# Check to see if we're a submodule or top-repo.
message( STATUS "Current Directory : ${CMAKE_CURRENT_SOURCE_DIR}" )
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
elseif(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
else()
message( FATAL_ERROR "No cmake directory found. Did you run the submodules script?" )
endif()
|
51becbde
Peter M. Groen
Committed the ent...
|
14
15
16
17
18
19
20
21
22
23
24
|
# Check to see if there is versioning information available
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/osdev_versioning/cmake)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/osdev_versioning/cmake)
include(osdevversion)
endif()
include(projectheader)
project_header(osdev_mqtt)
add_subdirectory(src)
|
b5d9e433
Peter M. Groen
Fixed License Hea...
|
25
26
|
add_subdirectory(examples/pub)
add_subdirectory(examples/sub)
|
51becbde
Peter M. Groen
Committed the ent...
|
27
28
29
30
|
# include(packaging)
# package_component()
|