This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Livox-SDK/sample_cc/lidar/CMakeLists.txt
T
2020-04-01 20:53:55 +08:00

17 lines
443 B
CMake

cmake_minimum_required(VERSION 3.0)
set(DEMO_NAME lidar_sample_cc)
add_executable(${DEMO_NAME} main.cpp lds_lidar.cpp)
if (WIN32)
add_custom_command(TARGET ${DEMO_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${PROJECT_SOURCE_DIR}/third_party/apr/bin/libapr-1.dll"
$<TARGET_FILE_DIR:${DEMO_NAME}>)
endif()
target_link_libraries(${DEMO_NAME}
PRIVATE
${PROJECT_NAME}_static
)