Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cmake_minimum_required( VERSION 3.15 )

project( FreeRTOS-Cellular-Interface LANGUAGES C )

# ------------------------------------------------------------------------------
# Includes
# ------------------------------------------------------------------------------

include( ${CMAKE_CURRENT_LIST_DIR}/cellularInterfaceFilePaths.cmake )

# ------------------------------------------------------------------------------
# Library targets
# ------------------------------------------------------------------------------

add_library( cellular_interface INTERFACE )
target_sources( cellular_interface INTERFACE ${CELLULAR_COMMON_SOURCES} )

target_include_directories( cellular_interface INTERFACE
${CELLULAR_INCLUDE_DIRS}
${CELLULAR_COMMON_INCLUDE_DIRS}
${CELLULAR_INTERFACE_INCLUDE_DIRS}
${CELLULAR_PRIVATE_DIRS} )
25 changes: 25 additions & 0 deletions cellularInterfaceFilePaths.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file is to add source files and include directories
# into variables so that it can be reused from different repositories
# in their Cmake based build system by including this file.
#
# Files specific to the repository such as test runner, platform tests
# are not added to the variables.

# Cellular library source files.
set( CELLULAR_COMMON_SOURCES
${CMAKE_CURRENT_LIST_DIR}/source/cellular_at_core.c
${CMAKE_CURRENT_LIST_DIR}/source/cellular_common.c
${CMAKE_CURRENT_LIST_DIR}/source/cellular_common_api.c
${CMAKE_CURRENT_LIST_DIR}/source/cellular_3gpp_urc_handler.c
${CMAKE_CURRENT_LIST_DIR}/source/cellular_3gpp_api.c
${CMAKE_CURRENT_LIST_DIR}/source/cellular_pkthandler.c
${CMAKE_CURRENT_LIST_DIR}/source/cellular_pktio.c )

# Cellular library include directory.
set( CELLULAR_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/source/include )
set( CELLULAR_COMMON_INCLUDE_DIRS ${CELLULAR_INCLUDE_DIRS}/common )
set( CELLULAR_PRIVATE_DIRS ${CMAKE_CURRENT_LIST_DIR}/source/include/private )

# Cellular interface include directory.
set( CELLULAR_INTERFACE_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/source/interface )

Loading