Skip to content

Commit

Permalink
Merge pull request #4 from xsacha/hunter
Browse files Browse the repository at this point in the history
Consistent config location with other Hunter packages
  • Loading branch information
ruslo authored Jun 1, 2017
2 parents 4d8199f + 3c7b0cd commit 87ff4f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lept.pc DESTINATION lib/pkgconfig)
install(FILES
${CMAKE_BINARY_DIR}/LeptonicaConfig.cmake
${CMAKE_BINARY_DIR}/LeptonicaConfig-version.cmake
DESTINATION cmake)
DESTINATION lib/cmake/${PROJECT_NAME})

###############################################################################
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (UNIX)
endif()

if (NOT CPPAN_BUILD)
export(TARGETS leptonica FILE ${CMAKE_BINARY_DIR}/LeptonicaTargets.cmake)
# export(TARGETS leptonica FILE ${CMAKE_BINARY_DIR}/LeptonicaTargets.cmake)
else()
target_link_libraries (leptonica
pvt.cppan.demo.gif
Expand All @@ -67,8 +67,8 @@ else()
export(TARGETS leptonica APPEND FILE ${CMAKE_BINARY_DIR}/LeptonicaTargets.cmake)
endif()

install(TARGETS leptonica EXPORT LeptonicaTargets RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
install(EXPORT LeptonicaTargets DESTINATION cmake)
install(TARGETS leptonica EXPORT LeptonicaTargets RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib INCLUDES DESTINATION include)
install(EXPORT LeptonicaTargets DESTINATION lib/cmake/${PROJECT_NAME})
install(FILES
${hdr}
${CMAKE_BINARY_DIR}/src/endianness.h
Expand Down

0 comments on commit 87ff4f2

Please sign in to comment.