1. 程式人生 > >如何寫CmakeList.txt檔案使在qtcreator裡面顯示原始檔

如何寫CmakeList.txt檔案使在qtcreator裡面顯示原始檔

cmake_minimum_required(VERSION 3.5)
FILE(GLOB incs include/pcl/gpu/kinfu/*.h*)
FILE(GLOB srcs src/*.cpp src/*.h*)
FILE(GLOB cuda src/cuda/*.cu src/cuda/*.h*)
add_custom_target(whatever SOURCES ${incs} ${srcs} ${cuda})#SOURCE is important

這裡寫圖片描述