cmake: allow man page installation by SDL satellite libraries

This is done by installing the wikiheaders.pl script, and add a wrapping cmake function.
This commit is contained in:
Anonymous Maarten
2023-06-27 02:49:05 +02:00
parent 9ab2025127
commit 937f5d0059
3 changed files with 74 additions and 22 deletions

View File

@@ -93,3 +93,8 @@ set(SDL3_STATIC_LIBRARIES SDL3::SDL3-static)
set(SDL3_STATIC_PRIVATE_LIBS)
set(SDL3TEST_LIBRARY SDL3::SDL3_test)
if(SDL3_FOUND)
set(WIKIHEADERS_PL_PATH "${CMAKE_CURRENT_LIST_DIR}/wikiheaders.pl")
include("${CMAKE_CURRENT_LIST_DIR}/sdlmanpages.cmake")
endif()