From 899f411e353da29352f1507a8e21dee04dd59948 Mon Sep 17 00:00:00 2001 From: Elmurod Talipov Date: Sun, 26 Dec 2021 00:01:26 +0900 Subject: [PATCH] Fix file install bug Signed-off-by: Elmurod Talipov --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4763b9f..ca33532 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,13 +42,13 @@ ADD_SUBDIRECTORY(test) # CMake Policy (CMP0002) # The logical name of executable and library targets # does not have to correspond to the physical file name built. -INSTALL(FILES telebot.pc DESTINATION lib/pkgconfig) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/telebot.pc DESTINATION lib/pkgconfig) INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib COMPONENT RuntimeLibraries) INSTALL(FILES - include/telebot.h - include/telebot-common.h - include/telebot-methods.h - include/telebot-types.h - include/telebot-core.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/telebot.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/telebot-common.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/telebot-methods.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/telebot-types.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/telebot-core.h DESTINATION include/telebot/)