mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-26 06:25:27 +00:00
commit
071b3981f7
@ -1,5 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.2)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
cmake_policy(VERSION 3.2)
|
cmake_policy(VERSION 3.5)
|
||||||
|
|
||||||
project(qBittorrent VERSION 3.4.0.0)
|
project(qBittorrent VERSION 3.4.0.0)
|
||||||
|
|
||||||
|
@ -91,3 +91,15 @@ find_package_handle_standard_args(LibtorrentRasterbar DEFAULT_MSG
|
|||||||
mark_as_advanced(LibtorrentRasterbar_INCLUDE_DIR LibtorrentRasterbar_LIBRARY
|
mark_as_advanced(LibtorrentRasterbar_INCLUDE_DIR LibtorrentRasterbar_LIBRARY
|
||||||
LibtorrentRasterbar_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES
|
LibtorrentRasterbar_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES
|
||||||
LibtorrentRasterbar_ENCRYPTION_INDEX)
|
LibtorrentRasterbar_ENCRYPTION_INDEX)
|
||||||
|
|
||||||
|
if (LibtorrentRasterbar_FOUND AND NOT TARGET LibtorrentRasterbar::LibTorrent)
|
||||||
|
add_library(LibtorrentRasterbar::LibTorrent UNKNOWN IMPORTED)
|
||||||
|
|
||||||
|
set_target_properties(LibtorrentRasterbar::LibTorrent PROPERTIES
|
||||||
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
||||||
|
IMPORTED_LOCATION "${LibtorrentRasterbar_LIBRARY}"
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES "${LibtorrentRasterbar_INCLUDE_DIRS}"
|
||||||
|
INTERFACE_LINK_LIBRARIES "${LibtorrentRasterbar_LIBRARIES}"
|
||||||
|
INTERFACE_COMPILE_OPTIONS "${LibtorrentRasterbar_DEFINITIONS}"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
@ -6,13 +6,6 @@ include(MacroLinkQtComponents)
|
|||||||
include(QbtTargetSources)
|
include(QbtTargetSources)
|
||||||
|
|
||||||
find_package(LibtorrentRasterbar REQUIRED)
|
find_package(LibtorrentRasterbar REQUIRED)
|
||||||
include_directories(SYSTEM ${LibtorrentRasterbar_INCLUDE_DIRS})
|
|
||||||
add_compile_options(${LibtorrentRasterbar_DEFINITIONS})
|
|
||||||
|
|
||||||
# Boost
|
|
||||||
set(Boost_USE_MULTITHREADED ON)
|
|
||||||
find_package(Boost 1.35 REQUIRED COMPONENTS system)
|
|
||||||
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
# Qt
|
# Qt
|
||||||
if (QT5)
|
if (QT5)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
include_directories(SYSTEM ${ZLIB_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
set(QBT_BASE_HEADERS
|
set(QBT_BASE_HEADERS
|
||||||
bittorrent/cachestatus.h
|
bittorrent/cachestatus.h
|
||||||
@ -113,7 +112,7 @@ tristatebool.cpp
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_library(qbt_base STATIC ${QBT_BASE_HEADERS} ${QBT_BASE_SOURCES})
|
add_library(qbt_base STATIC ${QBT_BASE_HEADERS} ${QBT_BASE_SOURCES})
|
||||||
target_link_libraries(qbt_base ${ZLIB_LIBRARIES} ${LibtorrentRasterbar_LIBRARIES})
|
target_link_libraries(qbt_base ZLIB::ZLIB LibtorrentRasterbar::LibTorrent)
|
||||||
target_link_qt_components(qbt_base Core Network Xml)
|
target_link_qt_components(qbt_base Core Network Xml)
|
||||||
if (QT4_FOUND)
|
if (QT4_FOUND)
|
||||||
if (GUI)
|
if (GUI)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user