From 3614ff489279e39a2922bf592f9e658e7985738c Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 12 Mar 2015 18:47:24 +0100 Subject: [PATCH] Removing install and uninstall targets for glfw. --- CMakeLists.txt | 1 + extern/glfw/cmake_install.cmake | 74 ----------------------------- extern/glfw/cmake_uninstall.cmake | 29 ----------- extern/glfw/src/cmake_install.cmake | 38 --------------- 4 files changed, 1 insertion(+), 141 deletions(-) delete mode 100644 extern/glfw/cmake_install.cmake delete mode 100644 extern/glfw/cmake_uninstall.cmake delete mode 100644 extern/glfw/src/cmake_install.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index dd1f733..7a120b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,6 +90,7 @@ INCLUDE(${CMAKE_SOURCE_DIR}/extern/acgl/CMakeListsStaticInclude.txt) OPTION(GLFW_BUILD_DOCS OFF) OPTION(GLFW_BUILD_TESTS OFF) OPTION(GLFW_BUILD_EXAMPLES OFF) +OPTION(GLFW_INSTALL OFF) FILE(GLOB_RECURSE HEADER_FILES_GLFW "${CMAKE_SOURCE_DIR}/extern/glfw/include/*.h") INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/extern/glfw/include) diff --git a/extern/glfw/cmake_install.cmake b/extern/glfw/cmake_install.cmake deleted file mode 100644 index 08a3964..0000000 --- a/extern/glfw/cmake_install.cmake +++ /dev/null @@ -1,74 +0,0 @@ -# Install script for directory: /home/fab/swp/swp/extern/glfw - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Release") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "0") -endif() - -if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE DIRECTORY FILES "/home/fab/swp/swp/extern/glfw/include/GLFW" FILES_MATCHING REGEX "/glfw3\\.h$" REGEX "/glfw3native\\.h$") -endif() - -if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/glfw" TYPE FILE FILES - "/home/fab/swp/swp/extern/glfw/src/glfw3Config.cmake" - "/home/fab/swp/swp/extern/glfw/src/glfw3ConfigVersion.cmake" - ) -endif() - -if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") - if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/glfw/glfwTargets.cmake") - file(DIFFERENT EXPORT_FILE_CHANGED FILES - "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/glfw/glfwTargets.cmake" - "/home/fab/swp/swp/extern/glfw/CMakeFiles/Export/lib/cmake/glfw/glfwTargets.cmake") - if(EXPORT_FILE_CHANGED) - file(GLOB OLD_CONFIG_FILES "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/glfw/glfwTargets-*.cmake") - if(OLD_CONFIG_FILES) - message(STATUS "Old export file \"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/cmake/glfw/glfwTargets.cmake\" will be replaced. Removing files [${OLD_CONFIG_FILES}].") - file(REMOVE ${OLD_CONFIG_FILES}) - endif() - endif() - endif() - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/glfw" TYPE FILE FILES "/home/fab/swp/swp/extern/glfw/CMakeFiles/Export/lib/cmake/glfw/glfwTargets.cmake") - if("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ee][Aa][Ss][Ee])$") - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/glfw" TYPE FILE FILES "/home/fab/swp/swp/extern/glfw/CMakeFiles/Export/lib/cmake/glfw/glfwTargets-release.cmake") - endif() -endif() - -if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/home/fab/swp/swp/extern/glfw/src/glfw3.pc") -endif() - -if(NOT CMAKE_INSTALL_LOCAL_ONLY) - # Include the install script for each subdirectory. - include("/home/fab/swp/swp/extern/glfw/src/cmake_install.cmake") - -endif() - diff --git a/extern/glfw/cmake_uninstall.cmake b/extern/glfw/cmake_uninstall.cmake deleted file mode 100644 index 01bbd87..0000000 --- a/extern/glfw/cmake_uninstall.cmake +++ /dev/null @@ -1,29 +0,0 @@ - -if (NOT EXISTS "/home/fab/swp/swp/extern/glfw/install_manifest.txt") - message(FATAL_ERROR "Cannot find install manifest: \"/home/fab/swp/swp/extern/glfw/install_manifest.txt\"") -endif() - -file(READ "/home/fab/swp/swp/extern/glfw/install_manifest.txt" files) -string(REGEX REPLACE "\n" ";" files "${files}") - -foreach (file ${files}) - message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") - if (EXISTS "$ENV{DESTDIR}${file}") - exec_program("/usr/bin/cmake" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" - OUTPUT_VARIABLE rm_out - RETURN_VALUE rm_retval) - if (NOT "${rm_retval}" STREQUAL 0) - MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") - endif() - elseif (IS_SYMLINK "$ENV{DESTDIR}${file}") - EXEC_PROGRAM("/usr/bin/cmake" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" - OUTPUT_VARIABLE rm_out - RETURN_VALUE rm_retval) - if (NOT "${rm_retval}" STREQUAL 0) - message(FATAL_ERROR "Problem when removing symlink \"$ENV{DESTDIR}${file}\"") - endif() - else() - message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") - endif() -endforeach() - diff --git a/extern/glfw/src/cmake_install.cmake b/extern/glfw/src/cmake_install.cmake deleted file mode 100644 index 4515c24..0000000 --- a/extern/glfw/src/cmake_install.cmake +++ /dev/null @@ -1,38 +0,0 @@ -# Install script for directory: /home/fab/swp/swp/extern/glfw/src - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Release") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "0") -endif() - -if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/fab/swp/swp/extern/glfw/src/libglfw3.a") -endif() -