qBittorrent/cmake/Modules/winconf-mingw.cmake
Vladimir Golovnev (Glassez) 38cf1fb3ee
Improve CMake configuration
Don't search for QtSingleApplication library.
Fix building on Windows with MinGW.
2019-07-21 16:41:17 +03:00

17 lines
550 B
CMake

if (STACKTRACE)
if (NOT "${WINXXBITS}" STREQUAL "Win64")
add_compile_options(-fno-omit-frame-pointer)
endif (NOT "${WINXXBITS}" STREQUAL "Win64")
link_libraries(dbghelp -Wl,--export-all-symbols)
endif (STACKTRACE)
if (("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") OR ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo"))
link_libraries(-Wl,--dynamicbase)
endif ()
list(APPEND LibtorrentRasterbar_CUSTOM_DEFINITIONS
-D__USE_W32_SOCKETS
-D_FILE_OFFSET_BITS=64)
link_libraries(advapi32 shell32 user32 wsock32 ws2_32 powrprof)