fix gir issue under cmake

This commit is contained in:
Chris Cromer 2019-07-03 20:06:11 -04:00
parent 2e516f79eb
commit 5c10b15c2b
Signed by untrusted user: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -105,13 +105,6 @@ VERSION
SOVERSION SOVERSION
6 ) 6 )
add_custom_command (
TARGET pamacclassic
POST_BUILD
COMMAND g-ir-compiler --shared-library=libpamacclassic "${CMAKE_CURRENT_BINARY_DIR}/pamacclassic-1.0.gir" --output="${CMAKE_CURRENT_BINARY_DIR}/pamacclassic-1.0.typelib"
)
install(TARGETS install(TARGETS
pamacclassic pamacclassic
LIBRARY DESTINATION LIBRARY DESTINATION
@ -132,16 +125,6 @@ install(FILES
DESTINATION DESTINATION
${CMAKE_INSTALL_DATAROOTDIR}/vala/vapi/ ${CMAKE_INSTALL_DATAROOTDIR}/vala/vapi/
) )
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/pamacclassic-1.0.gir
DESTINATION
${CMAKE_INSTALL_DATAROOTDIR}/gir-1.0/
)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/pamacclassic-1.0.typelib
DESTINATION
lib/girepository-1.0/
)
install(FILES install(FILES
${CMAKE_CURRENT_BINARY_DIR}/pamacclassic.pc ${CMAKE_CURRENT_BINARY_DIR}/pamacclassic.pc
DESTINATION DESTINATION