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

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -