pspdev / psp-packages

https://pspdev.github.io/psp-packages/
The Unlicense
19 stars 13 forks source link

Add leptonica package #162

Closed diamant3 closed 4 weeks ago

tpimh commented 4 weeks ago

It seems that there's also another file for CMake: lept.pc.cmake.

Used like this:

configure_file(lept.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/lept.pc.in @ONLY)
# to resolve generator expression in OUTPUT_NAME
file(
  GENERATE
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lept_$<CONFIG>.pc
  INPUT ${CMAKE_CURRENT_BINARY_DIR}/lept.pc.in)

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lept_$<CONFIG>.pc
        DESTINATION lib/pkgconfig)
diamant3 commented 4 weeks ago

Thanks. I think that's the issue with the pc filename. Anything I put to -DCMAKE_BUILD_TYPE= it results in lept_(input from -DCMAKE_BUILD_TYPE=) 😢

sharkwouter commented 4 weeks ago

Thanks!