mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 06:30:46 -04:00
Remove dependency to the production image by creating separate sysroot for test assets alongside with a test image Test.img. Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
31 lines
554 B
CMake
31 lines
554 B
CMake
target_sources(
|
|
platform
|
|
|
|
PRIVATE
|
|
src/BlockDeviceFactory.cpp
|
|
src/BlockDeviceFactory.hpp
|
|
src/DiskImage.cpp
|
|
src/LinuxPlatform.cpp
|
|
|
|
PUBLIC
|
|
include/platform/linux/DiskImage.hpp
|
|
include/platform/linux/LinuxPlatform.hpp
|
|
)
|
|
|
|
target_include_directories(
|
|
platform
|
|
PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
)
|
|
|
|
target_link_libraries(
|
|
platform
|
|
PRIVATE
|
|
iosyscalls
|
|
module-vfs
|
|
)
|
|
|
|
if (${ENABLE_TESTS})
|
|
add_subdirectory(tests)
|
|
endif ()
|