diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index daa7d715..38129279 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -164,5 +164,22 @@ else() PUBLIC_HEADER "${VORBIS_PUBLIC_HEADERS}" OUTPUT_NAME Vorbis ) + + target_include_directories(vorbis + PUBLIC + $ + $ + PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + ) + target_link_libraries(vorbis ${OGG_LIBRARIES}) + + install(TARGETS vorbis + EXPORT VorbisTargets + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + FRAMEWORK DESTINATION ${CMAKE_INSTALL_PREFIX} + ) endif()