File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ prefix=@CMAKE_INSTALL_PREFIX@
2
+ exec_prefix=${prefix}
3
+ includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
4
+ libdir=@CMAKE_INSTALL_FULL_LIBDIR@
5
+
6
+ Name: godot-cpp
7
+ Description: C++ bindings for the Godot script API
8
+ Version: @GODOT_API_VERSION@
9
+ Libs: -L${libdir} -l@GODOTCPP_OUTPUT_NAME@
10
+ Cflags: -I${includedir}
Original file line number Diff line number Diff line change @@ -287,5 +287,18 @@ function( godotcpp_installable )
287
287
DESTINATION "${GODOT_INSTALL_CMAKEDIR} "
288
288
COMPONENT "godot-cpp"
289
289
)
290
+
291
+ # Install the pkg-config file
292
+ get_target_property (GODOTCPP_OUTPUT_NAME "${PROJECT_NAME} " OUTPUT_NAME )
293
+ configure_file (
294
+ "${CMAKE_CURRENT_SOURCE_DIR} /cmake/godot-cpp.pc.in"
295
+ "${CMAKE_CURRENT_BINARY_DIR} /godot-cpp.pc"
296
+ @ONLY
297
+ )
298
+ install (
299
+ FILES "${CMAKE_CURRENT_BINARY_DIR} /godot-cpp.pc"
300
+ DESTINATION "${CMAKE_INSTALL_LIBDIR} /pkgconfig"
301
+ COMPONENT "godot-cpp"
302
+ )
290
303
endif ()
291
304
endfunction ()
You can’t perform that action at this time.
0 commit comments