diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-22 18:55:40 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-22 18:55:40 +0200 |
| commit | d6b72865f40d438da46d20bc523a30ed41d4cb36 (patch) | |
| tree | ec0a5712556f779b8e2de2bc43953585db377356 | |
| parent | 24f3d9147bfe222a6bfcfc0845b44ae8fde33cdf (diff) | |
| download | turns-d6b72865f40d438da46d20bc523a30ed41d4cb36.tar.xz turns-d6b72865f40d438da46d20bc523a30ed41d4cb36.zip | |
lib: install gir files
| -rw-r--r-- | cmake/Modules/GlibIntrospection.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cmake/Modules/GlibIntrospection.cmake b/cmake/Modules/GlibIntrospection.cmake index db4434d..ffec754 100644 --- a/cmake/Modules/GlibIntrospection.cmake +++ b/cmake/Modules/GlibIntrospection.cmake @@ -62,7 +62,7 @@ function(target_glib_generate_gir TARGET) endif() get_target_property(TARGET_OUTPUT_NAME "${TARGET}" OUTPUT_NAME) - set(_OUTPUT_FILE "${_OUTPUT_DIR}/$<CONFIG>/${_NAMESPACE}") + set(_OUTPUT_FILE "${_OUTPUT_DIR}/$<CONFIG>/${_NAMESPACE}-${_VERSION}") add_custom_command(TARGET "${TARGET}" POST_BUILD @@ -91,4 +91,12 @@ function(target_glib_generate_gir TARGET) VERBATIM ) + install(FILES "${_OUTPUT_FILE}.gir" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/gir-1.0" + ) + + install(FILES "${_OUTPUT_FILE}.typelib" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/girepository-1.0" + ) + endfunction()
\ No newline at end of file |
