I'm working with Astra Depth camera and I want to get information from the camera by running some provided code. However, I run into an error with CMakeList.txt:
Unknown CMake command "set_debug_working_dir".
I have looked through some questions about the problem but I couldn't find anything. I also have tried asking ChatGPT about this and it said that because the CMAke version I'm using does not support the command. I still don't know how to fix this.
Here is the code:
set (_projname "DepthReaderEventCPP")
set (${_projname}_SOURCES
main.cpp
${SAMPLE_COMMON_DIR}/key_handler.h
)
add_executable(${_projname} ${${_projname}_SOURCES})
set_target_properties(${_projname} PROPERTIES FOLDER "${SAMPLE_DIR_FOLDER}cpp-api")
target_link_libraries(${_projname} ${ASTRA_LIBRARIES})
set_debug_working_dir(${_projname} "$(TargetDir)") //here is the error line
add_astra_sdk_dependency(${_projname})
install_sample(${_projname})