mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
fa770871e9
1. Use FeatureSummary module to show configuration results. 2. Invert option()/find_package() relationship: instead of calling find_package(... REQUIRED) when option is set, rely on optional find package call and PackageName_FOUND variable. 3. Refactor handling options that result in simple preprocessor defines (actually copy the snippet from libtorrent) so that everything is done in a single function call. 4. Populate target properties in order to get rid of include_directories() calls.
13 lines
289 B
CMake
13 lines
289 B
CMake
find_package(Qt5Widgets ${requiredQtVersion}) # to conditionally install desktop-related files
|
|
|
|
if (APPLE)
|
|
add_subdirectory(mac)
|
|
else (APPLE)
|
|
if (UNIX)
|
|
add_subdirectory(unix)
|
|
endif (UNIX)
|
|
if (WIN32)
|
|
add_subdirectory(windows)
|
|
endif (WIN32)
|
|
endif (APPLE)
|