windows - Console build with post-build events in Visual Studio -


i'm using cmake. cmake "install" instruction:

install(targets mainproject         runtime destination "${project_source_dir}/install/bin"         archive destination "${project_source_dir}/install/lib"         library destination "${project_source_dir}/install/bin" ) 

in windows cmake creates project "install", relates project "build_all", relates real projects listed in cmakelists.txt files. project "install" have post-build event, performs "install" actions.

but when run devenv install.vcxproj /rebuild "release|x64", post-build event not performed.

does there exists way perform post-build events of visual studio console?

(i need console, because build have run scripts)

turning comment answer

you can use cmake's --build command line option (which abstract make/msbuild/ninja... calls) like:

cmake --build . --target install --config release 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -