mirror of
https://github.com/cottongin/cardputerzero-camera.git
synced 2026-11-21 06:44:47 -06:00
fix(app): propagate CZ_TARGET_DEVICE to czcamera_core and keep reap_mutex_ across child_pid_ clear
This commit is contained in:
@@ -67,6 +67,10 @@ if(CZ_ENABLE_LVGL AND lvgl_FOUND)
|
||||
target_link_libraries(czcamera_core PUBLIC lvgl::lvgl)
|
||||
endif()
|
||||
|
||||
if(CZ_TARGET_DEVICE)
|
||||
target_compile_definitions(czcamera_core PUBLIC CZ_TARGET_DEVICE=1)
|
||||
endif()
|
||||
|
||||
if(CZ_BUILD_APP)
|
||||
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp")
|
||||
message(FATAL_ERROR "CZ_BUILD_APP=ON requires src/main.cpp")
|
||||
@@ -74,9 +78,7 @@ if(CZ_BUILD_APP)
|
||||
add_executable(czcamera src/main.cpp)
|
||||
target_compile_options(czcamera PRIVATE -Wall -Wextra -Wpedantic)
|
||||
target_link_libraries(czcamera PRIVATE czcamera_core JPEG::JPEG)
|
||||
if(CZ_TARGET_DEVICE)
|
||||
target_compile_definitions(czcamera PRIVATE CZ_TARGET_DEVICE=1)
|
||||
else()
|
||||
if(NOT CZ_TARGET_DEVICE)
|
||||
find_package(SDL2 REQUIRED)
|
||||
target_link_libraries(czcamera PRIVATE SDL2::SDL2)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user