基本上我有一个文件夹/myOpenCVProject/
我在哪里:
header.hpp
main.cpp
helper.cpp
和 CMakeLists.txt
SET( PROJECT_NAME myOpenCVProject )
PROJECT( ${PROJECT_NAME} )
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
FIND_PACKAGE( OpenCV REQUIRED )
ADD_EXECUTABLE( ${PROJECT_NAME} main.cpp )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${OpenCV_LIBS} )
我如何告诉 CMake 也包含header
和helper
文件?