Skip to content

Commit

Permalink
pkg-config: Actually install the new scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
erysdren committed Aug 20, 2024
1 parent 576e2f0 commit 99006aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmake/packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ install(FILES

# pkg-config
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/brender.pc.in ${CMAKE_CURRENT_BINARY_DIR}/brender.pc @ONLY)
foreach(driver sdl2dev glrend)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/brender-driver.pc.in ${CMAKE_CURRENT_BINARY_DIR}/brender-${driver}.pc @ONLY)
endforeach()
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/brender.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
foreach(driver sdl2dev glrend softrend pentprim)
if (TARGET ${driver})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/brender-driver.pc.in ${CMAKE_CURRENT_BINARY_DIR}/brender-${driver}.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/brender-${driver}.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
endif()
endforeach()

0 comments on commit 99006aa

Please sign in to comment.