I'm using CMake. That is the 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", that relates to project "BUILD_ALL", that relates to all real projects listed in CMakeLists.txt
files.
Project "INSTALL" have post-build event, that performs "install" actions.
But when I run it with devenv INSTALL.vcxproj /rebuild "Release|x64"
, post-build event are not performed.
Does there exists way to perform post-build events of Visual Studio from console?
(I need console, because build have to be run from scripts)