Files
oceanControlLib/ocean_lib/CMakeLists.txt

36 lines
757 B
CMake
Raw 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(.)#包含头文件
#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}
library.cpp
main.cpp
)
target_link_libraries(${CMAKE_PROJECT_NAME}
seabreeze
usb
)