c++ - How to add files that are not used to create the target in the target project (cmake) -
let me use simple example illustrate problem, , suppose have following files:
src ---cmakelists.txt ---a.h ---a.cpp ---script.py in cmakelists.txt file, target called lib_proj created:
add_library(lib_proj static a.h a.cpp) then in visual studio, can see object target called 'lib_proj' created, includes a.h , a.cpp. how can script.py added target well?
add_library(lib_proj static a.h a.cpp script.py)
Comments
Post a Comment