Skip to content

Commit

Permalink
Add simple uninstall target
Browse files Browse the repository at this point in the history
Fix installation directory paths
  • Loading branch information
reedacartwright committed Nov 27, 2018
1 parent 0cc628d commit 2c53bb9
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 468 deletions.
12 changes: 11 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PROJECT(SPAGeDi)
SET(SPAGEDI_NAME "SPAGeDi")
SET(SPAGEDI_VERSION "1.5d") # Default Version Number
SET(SPAGEDI_VERSION_MAJOR "1")
SET(SPAGED_VERSION_MINOR "5")
SET(SPAGEDI_VERSION_MINOR "5")

SET(SPAGEDI_DIR "spagedi-${SPAGEDI_VERSION_MAJOR}.${SPAGEDI_VERSION_MINOR}")

Expand All @@ -24,3 +24,13 @@ ADD_SUBDIRECTORY(example_data)

INSTALL(FILES manual.pdf copying.txt readme.txt DESTINATION ${CMAKE_DOC_DIR})

# uninstall target
if(NOT TARGET uninstall)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)

add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
endif()
339 changes: 0 additions & 339 deletions Modules/CMakeIngestOSXBundleLibraries.cmake

This file was deleted.

8 changes: 0 additions & 8 deletions Modules/install_glue.cmake

This file was deleted.

Loading

0 comments on commit 2c53bb9

Please sign in to comment.