Files
oceanControlLib/CMakeLists.txt
tangchao0503 86534c10f3 1、添加函数:test_nonlinearity_coeffs_feature;
2、优化项目结构;
2023-03-19 20:37:07 +08:00

36 lines
785 B
CMake
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cmake_minimum_required(VERSION 3.5)
project(ocean_lib)
set(CMAKE_CXX_STANDARD 14)
include_directories(/home/iris-xport/projects/ocean/seabreeze-3.0.11/SeaBreeze/include/)
LINK_DIRECTORIES(/home/iris-xport/projects/ocean/seabreeze-3.0.11/SeaBreeze/lib/)
include_directories(ocean_lib)#包含头文件
#file(GLOB_RECURSE SRC_H ./*.h)
file(GLOB_RECURSE SRC_CPP ./*.cpp)
#add_library(${CMAKE_PROJECT_NAME} SHARED ${SRC_CPP})
#
#TARGET_LINK_LIBRARIES(oceanlib
# seabreeze
# usb
# )
### Outputs提示
#add_executable(${CMAKE_PROJECT_NAME}
# ${SRC_CPP}
# )
add_executable(${CMAKE_PROJECT_NAME}
ocean_lib/library.cpp
ocean_lib/main.cpp
)
target_link_libraries(${CMAKE_PROJECT_NAME}
seabreeze
usb
)