diff --git a/ports/libfaketime/CMakeLists.txt b/ports/libfaketime/CMakeLists.txt index 08e01c4f6eb..a5d6f20858c 100644 --- a/ports/libfaketime/CMakeLists.txt +++ b/ports/libfaketime/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.20) project(faketime VERSION 0.9.10) @@ -21,18 +21,11 @@ target_include_directories(${PROJECT_NAME} file(GLOB_RECURSE PUBLIC_HEADERS "src/*.h") -target_sources( - ${PROJECT_NAME} - PUBLIC - FILE_SET HEADERS - BASE_DIRS src - FILES ${PUBLIC_HEADERS} -) +install(FILES ${PUBLIC_HEADERS} DESTINATION include) install(TARGETS ${PROJECT_NAME} - FILE_SET HEADERS RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} -) \ No newline at end of file +)