ChargingStation/chargingstation/chuankou3/CMakeLists.txt

38 lines
1.2 KiB
CMake

# @author Liang Huanyan
# @email lianghuanyan@alientek.com
# http://www.openedv.com/forum.php
cmake_minimum_required(VERSION 3.8)
message(STATUS "cmake version ${CMAKE_VERSION}")
set(TOOLCHAIN_DIR /opt/atk-dlrv1126-toolchain)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/usr/bin/arm-linux-gnueabihf-g++)
set(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/usr/bin/arm-linux-gnueabihf-gcc)
set(SYSROOT ${TOOLCHAIN_DIR}/arm-buildroot-linux-gnueabihf/sysroot/usr/include)
set(CMAKE_SYSROOT ${TOOLCHAIN_DIR}/arm-buildroot-linux-gnueabihf/sysroot)
set(CMAKE_CXX_STANDARD 11)
add_definitions(-g -O0 -ggdb -gdwarf -funwind-tables -rdynamic)
add_definitions(-Wno-write-strings -Wno-return-type)
set(OPENCV_LIBS opencv_core opencv_imgcodecs opencv_imgproc opencv_features2d opencv_flann opencv_highgui opencv_freetype)
link_directories(include lib)
link_directories(include ./librtsp)
find_package(CURL REQUIRED)
include_directories(${CURL_INCLUDE_DIR})
message("CURL_LIBRARIES: ${CURL_LIBRARIES}")
message("CURL_INCLUDE_DIR: ${CURL_INCLUDE_DIR}")
find_package(OpenCV REQUIRED)
include_directories(${SYSROOT})
add_definitions(-DRKAIQ)
add_executable(temperature main.cpp)
target_link_libraries(temperature ${OPENCV_LIBS} ${RKNN_LIBS} pthread dl ${CURL_LIBRARIES})