1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 08:20:01 +01:00
Clementine-audio-player-Mac.../3rdparty/vreen/CMakeLists.txt
2015-04-17 12:10:40 +01:00

29 lines
1.0 KiB
CMake

set(QT_USE_QTNETWORK true)
option(USE_SYSTEM_VREEN "Force use system vreen instead build-in copy" OFF)
if(USE_SYSTEM_VREEN)
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
pkg_check_modules(VREEN REQUIRED vreen)
#another spike. In pkgconfig LIBRARIES macro list only lib names
set(VREEN_LIBRARIES ${VREEN_LDFLAGS})
endif()
endif()
if(NOT VREEN_FOUND)
if(NOT CMAKE_INSTALL_PREFIX STREQUAL "/usr")
set(VREEN_IMPORTS_DIR bin)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++0x")
set(VREEN_WITH_QMLAPI OFF CACHE INTERNAL "")
set(VREEN_WITH_OAUTH ON CACHE INTERNAL "")
set(VREEN_INSTALL_HEADERS OFF CACHE INTERNAL "")
set(VREEN_DEVELOPER_BUILD OFF CACHE INTERNAL "")
set(VREEN_WITH_EXAMPLES OFF CACHE INTERNAL "")
set(VREEN_WITH_TESTS OFF CACHE INTERNAL "")
add_subdirectory(vreen)
message(STATUS "Using internal copy of vreen")
set(VREEN_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/vreen/include CACHE INTERNAL "")
set(VREEN_LIBRARIES vreen CACHE INTERNAL "")
endif()