blep / unrar-cmake

CMake project for unrar and libunrar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unrar-cmake

CMake project for unrar and libunrar

How do I include this in my project?

Clone this repository into your thirdparty directory.

# CMakeLists.txt
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH} thirdparty/unrar-cmake/cmake/modules")

find_package(libunrar REQUIRED)
if (LIBUNRAR_FOUND)
  target_include_directories(mytarget PUBLIC ${LIBUNRAR_INCLUDE_DIR})
  target_link_libraries(mytarget ${LIBUNRAR_LIBRARY})
endif()

About

CMake project for unrar and libunrar

License:MIT License


Languages

Language:CMake 99.1%Language:C 0.9%