CMakeLists.txt c++11
·
cmake_minimum_required(VERSION 2.8)
PROJECT (HELLO)
SET(CMAKE_C_COMPILER g++)
if(CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(-std=c++11)
message(STATUS "optional:-std=c++11")
endif(CMAKE_COMPILER_IS_GNUCXX)
find_package( OpenCV REQUIRED )
SET(SRC_LIST LaneDetector.cpp main.cpp)
ADD_EXECUTABLE(hello ${SRC_LIST})
target_link_libraries(hello ${OpenCV_LIBS} )
更多推荐
所有评论(0)