summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/PRE_POST_INSTALL_SCRIPT.cmake
blob: 357c68872299dab7f16b331bff79cbab0de33a09 (plain)
1
2
3
4
5
6
7
enable_language(C)

add_executable(myexe main.c)
set_property(TARGET myexe PROPERTY PRE_INSTALL_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/preinstall.cmake")
set_property(TARGET myexe PROPERTY POST_INSTALL_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/postinstall.cmake")

install(TARGETS myexe DESTINATION bin)