diff options
Diffstat (limited to 'serial/CMakeLists.txt')
-rw-r--r-- | serial/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/serial/CMakeLists.txt b/serial/CMakeLists.txt index 55415f3..5ded98c 100644 --- a/serial/CMakeLists.txt +++ b/serial/CMakeLists.txt | |||
@@ -1,7 +1,11 @@ | |||
1 | cmake_minimum_required(VERSION 3.10) | 1 | cmake_minimum_required(VERSION 3.10) |
2 | project(serial) | 2 | project(serial) |
3 | 3 | ||
4 | add_executable(serial serial.c ${CMAKE_SOURCE_DIR}/lcmtype/path_ctrl_t.c) | 4 | # 设置源文件为本文件夹下的所有.c .cpp文件以及lcmtype文件夹下的所有.c .cpp文件 |
5 | aux_source_directory(. DIR_SRCS) | ||
6 | aux_source_directory(${CMAKE_SOURCE_DIR}/lcmtype DIR_SRCS) | ||
7 | |||
8 | add_executable(serial ${DIR_SRCS}) | ||
5 | 9 | ||
6 | # 添加链接库 | 10 | # 添加链接库 |
7 | target_link_libraries(serial lcm) \ No newline at end of file | 11 | target_link_libraries(serial lcm) \ No newline at end of file |