File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ set(CMAKE_CXX_STANDARD 14)
2020set (CMAKE_POSITION_INDEPENDENT_CODE ON )
2121set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
2222
23+ include (GNUInstallDirs)
24+
2325### Dependencies
2426set (OpenGL_GL_PREFERENCE GLVND)
2527find_package (OpenGL)
Original file line number Diff line number Diff line change 1515# Author:
1616#
1717
18- include (GNUInstallDirs)
19-
2018if (WIN32 )
2119 set (openxr_loader_RESOURCE_FILE ${CMAKE_CURRENT_SOURCE_DIR} /loader.rc)
2220endif ()
Original file line number Diff line number Diff line change @@ -79,3 +79,7 @@ endif()
7979
8080install (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 ()
Original file line number Diff line number Diff line change @@ -49,3 +49,6 @@ set_target_properties(runtime_list PROPERTIES OUTPUT_NAME openxr_runtime_list)
4949
5050install (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 ()
You can’t perform that action at this time.
0 commit comments