Skip to content

Commit 9f38c35

Browse files
committed
build: Install manpages.
1 parent c5c8c2b commit 9f38c35

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ set(CMAKE_CXX_STANDARD 14)
2020
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
2121
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
2222

23+
include(GNUInstallDirs)
24+
2325
### Dependencies
2426
set(OpenGL_GL_PREFERENCE GLVND)
2527
find_package(OpenGL)

src/loader/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# Author:
1616
#
1717

18-
include(GNUInstallDirs)
19-
2018
if(WIN32)
2119
set(openxr_loader_RESOURCE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/loader.rc)
2220
endif()

src/tests/hello_xr/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,7 @@ endif()
7979

8080
install(TARGETS hello_xr
8181
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
82+
83+
if(NOT WIN32)
84+
install(FILES hello_xr.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/ COMPONENT ManPages)
85+
endif()

src/tests/list/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ set_target_properties(runtime_list PROPERTIES OUTPUT_NAME openxr_runtime_list)
4949

5050
install(TARGETS runtime_list
5151
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
52+
if(NOT WIN32)
53+
install(FILES openxr_runtime_list.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/ COMPONENT ManPages)
54+
endif()

0 commit comments

Comments
 (0)