-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[update]修复上次提交发现的bug,更新新型号支持相关文档,增加子项目CMake配置文件方便开发者引用(版本号v3.3.1)
- Loading branch information
1 parent
be0c240
commit 6148cd3
Showing
9 changed files
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# sub project | ||
message(STATUS "operation system is ${CMAKE_SYSTEM}") | ||
|
||
if(CMAKE_SYSTEM_NAME MATCHES "Linux") | ||
message(STATUS "current platform: Linux ") | ||
|
||
set(LDLIDAR_DRIVER_SOURCE_LINUX | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/ldlidar_driver.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/ldlidar_driver_linux.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/ldlidar_dataprocess.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/ldlidar_protocol.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/log_module.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/network_socket_interface_linux.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/serial_interface_linux.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/sl_transform.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/slbf.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/tofbf.cpp | ||
) | ||
|
||
add_library(ldlidar_driver STATIC | ||
${LDLIDAR_DRIVER_SOURCE_LINUX} | ||
) | ||
|
||
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows") | ||
message(STATUS "current platform: Windows") | ||
|
||
set(LDLIDAR_DRIVER_SOURCE_WIN | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/ldlidar_driver.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/ldlidar_driver_win.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/ldlidar_dataprocess.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/ldlidar_protocol.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/log_module.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/serial_interface_win.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/sl_transform.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/slbf.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/tofbf.cpp | ||
) | ||
|
||
add_library(ldlidar_driver STATIC | ||
${LDLIDAR_DRIVER_SOURCE_WIN} | ||
) | ||
|
||
else() | ||
message(STATUS "other platform: ${CMAKE_SYSTEM_NAME}") | ||
endif (CMAKE_SYSTEM_NAME MATCHES "Linux") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters