Skip to content

Commit

Permalink
fix: fix cmake install not exporting configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
sanfengAndroid committed Jun 16, 2024
1 parent 5e07a96 commit fedeef9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/fakelinker/fakelinker
)

install(EXPORT fakelinker
FILE fakelinker-config.cmake
NAMESPACE fakelinker::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/fakelinker
)

if(FAKELINKER_BUILD_INSTALLER)
add_executable(${FAKELINKER_INSTALLER_MODULE_NAME}
installer/hook_installer.cpp
Expand Down

0 comments on commit fedeef9

Please sign in to comment.