C/C++ API improvements, CMake include dir change
C API: add format functions C++ API: add ABI stable wrapper RagePhotoA based on C API
This commit is contained in:
parent
d8c99b9067
commit
67ed433f6b
6 changed files with 198 additions and 2 deletions
|
@ -75,6 +75,9 @@ endif()
|
|||
|
||||
if (WITH_C_API)
|
||||
set(LIBRAGEPHOTO_API LIBRAGEPHOTO_C_API)
|
||||
list(APPEND RAGEPHOTO_HEADERS
|
||||
src/RagePhotoA.h
|
||||
)
|
||||
else()
|
||||
set(LIBRAGEPHOTO_API LIBRAGEPHOTO_C_NOAPI)
|
||||
endif()
|
||||
|
@ -90,6 +93,7 @@ target_compile_definitions(ragephoto PRIVATE
|
|||
)
|
||||
target_include_directories(ragephoto PUBLIC
|
||||
${PROJECT_BINARY_DIR}/include
|
||||
${PROJECT_SOURCE_DIR}/src
|
||||
)
|
||||
install(TARGETS ragephoto DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(FILES ${RAGEPHOTO_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/RagePhoto)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue