diff options
Diffstat (limited to 'lib/pbdrv/CMakeLists.txt')
-rw-r--r-- | lib/pbdrv/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/pbdrv/CMakeLists.txt b/lib/pbdrv/CMakeLists.txt index 0c09e67..d3ccebc 100644 --- a/lib/pbdrv/CMakeLists.txt +++ b/lib/pbdrv/CMakeLists.txt @@ -11,8 +11,10 @@ add_compile_definitions(DEBUG) project(pbdrv C CXX) add_subdirectory(lib/mpack) -add_compile_definitions(MPACK_HAS_CONFIG=1) -target_include_directories(mpack INTERFACE .) # mpack-config.h + +# mpack-config.h +target_compile_definitions(mpack PRIVATE MPACK_HAS_CONFIG=1) +target_include_directories(mpack PRIVATE .) # generic puzzle bus message handling library functions add_library(pbdrv STATIC @@ -25,13 +27,14 @@ target_compile_definitions(pbdrv PRIVATE PB_TARGET_STDLIB) target_link_libraries(pbdrv mpack) # puzzle bus *module* specific code -add_library(pbdrv-mod STATIC +add_library(pbdrv-mod OBJECT pb-msg.c pb-serial.c pb-buf.c pb-mod.c pb-send.c pb-route.c + pb-mem.c ) target_include_directories(pbdrv-mod SYSTEM INTERFACE .) target_compile_definitions(pbdrv-mod PRIVATE PB_TARGET_FREERTOS) |