diff --git a/CMakeLists.txt b/CMakeLists.txt index 6549ba7..78f6531 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,4 +119,3 @@ if (PTEX_BUILD_DOCS) add_subdirectory(src/doc) endif () add_subdirectory(src/build) - diff --git a/src/build/CMakeLists.txt b/src/build/CMakeLists.txt index d46d81f..b8944f1 100644 --- a/src/build/CMakeLists.txt +++ b/src/build/CMakeLists.txt @@ -30,6 +30,8 @@ else() endif() string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWERCASE) + +get_target_property(PTEX_DYNAMIC_OUTPUT_NAME Ptex_dynamic OUTPUT_NAME) configure_file("${PROJECT_NAME_LOWERCASE}.pc.in" "${PROJECT_NAME_LOWERCASE}.pc" @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME_LOWERCASE}.pc" COMPONENT devel DESTINATION share/pkgconfig)