添加了cmakelist.txt
This commit is contained in:
19
ocean_lib/CMakeLists.txt
Normal file
19
ocean_lib/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
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(oceanlib SHARED ${SRC_CPP})
|
||||||
|
|
||||||
|
TARGET_LINK_LIBRARIES(oceanlib
|
||||||
|
seabreeze
|
||||||
|
usb
|
||||||
|
)
|
Reference in New Issue
Block a user