diff options
author | Christoph Haag <christoph.haag@collabora.com> | 2019-05-15 16:51:52 +0300 |
---|---|---|
committer | Ryan A. Pavlik <ryan.pavlik@gmail.com> | 2019-06-17 17:33:54 +0300 |
commit | 23af1c6eb960e8e6b0f05b3e92b34fdb7b8b6c2d (patch) | |
tree | aaecf5ff5d4cfdd69d237df2b15ea3431101ca8d /CMakeLists.txt | |
parent | f227d54db854cc39c006de37d8d9e726f173e096 (diff) |
Install layers and pkg-config file on Linux
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 35ea536..42830f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,12 +22,24 @@ cmake_minimum_required(VERSION 3.0) project(OPENXR) +# Enable IDE GUI folders. "Helper targets" that don't have interesting source code should set their FOLDER property to this set_property(GLOBAL PROPERTY USE_FOLDERS ON) +set(LOADER_HELPER_FOLDER "Helper Targets") set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "") add_subdirectory(include) add_subdirectory(src) +# uninstall target +if(NOT TARGET uninstall) + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/cmake/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) + set_target_properties(uninstall PROPERTIES FOLDER ${LOADER_HELPER_FOLDER}) +endif() + find_program(BASH_COMMAND NAMES bash) if(BASH_COMMAND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/specification/Makefile") option(BUILD_SPECIFICATION "Run './makeAllExts all' in the specification directory as part of the build - intended for one-step checking of spec changes" OFF) |