Skip to content

Commit

Permalink
cmake: Light client as individual project
Browse files Browse the repository at this point in the history
The light client project now uses Wakaama as a direct dependency. The
CI and integration tests were adjusted for the new project.
  • Loading branch information
LukasWoodtli committed Oct 31, 2024
1 parent d638712 commit 7b51734
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ cmake_minimum_required(VERSION 3.21)
add_compile_definitions(_POSIX_C_SOURCE=200809)

add_subdirectory(client)
add_subdirectory(lightclient)
15 changes: 8 additions & 7 deletions examples/lightclient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ cmake_minimum_required(VERSION 3.21)

project(lightclient C)

include(../../wakaama.cmake)
set(WAKAAMA_MODE_CLIENT ON)
set(WAKAAMA_CLI ON)
set(WAKAAMA_TRANSPORT POSIX_UDP)
set(WAKAAMA_PLATFORM POSIX)
add_subdirectory(../../ wakaama_lib)

if(WAKAAMA_ENABLE_EXAMPLES AND WAKAAMA_MODE_CLIENT)
add_executable(lightclient lightclient.c object_device.c object_security.c object_server.c object_test.c)
target_compile_definitions(lightclient PRIVATE LWM2M_CLIENT_MODE)
target_sources_wakaama(lightclient)
target_sources_shared(lightclient)
endif()
add_executable(lightclient)
target_sources(lightclient PRIVATE lightclient.c object_device.c object_security.c object_server.c object_test.c)
target_link_libraries(lightclient PRIVATE wakaama_static)

0 comments on commit 7b51734

Please sign in to comment.