CMakeLists.txt
changeset 8874 48d4f2d74d67
parent 8842 f587255157cf
child 8910 c23ffe72934c
     1.1 --- a/CMakeLists.txt	Mon Jun 16 09:54:33 2014 -0300
     1.2 +++ b/CMakeLists.txt	Mon Jun 16 10:58:09 2014 -0300
     1.3 @@ -1308,3 +1308,12 @@
     1.4    install(TARGETS SDL2 RUNTIME DESTINATION bin)
     1.5  endif()
     1.6  
     1.7 +##### Uninstall target #####
     1.8 +
     1.9 +configure_file(
    1.10 +    "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
    1.11 +    "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
    1.12 +    IMMEDIATE @ONLY)
    1.13 +
    1.14 +add_custom_target(uninstall
    1.15 +    COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)