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
Post a Comment