From 4a88aab247a42905bbb39ae04f9caf0cfaa05728 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sat, 4 Dec 2021 04:38:23 -0600 Subject: [PATCH] Update for Qt6 --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0189281..4d9d316 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5..3.15) +cmake_minimum_required(VERSION 3.16) option(copy_dll_to_binary_dir "Will copy libbsarch DLL to the binary directory. May not work if libbsarch is used as a subproject" ON) @@ -40,7 +40,7 @@ add_custom_command(TARGET libbsarch POST_BUILD # libbsarch_OOP # ############################################################ -find_package(Qt5 OPTIONAL_COMPONENTS Core) +find_package(Qt6 COMPONENTS Core REQUIRED) add_library(libbsarch_OOP STATIC src/base_types.hpp @@ -95,9 +95,9 @@ if(copy_dll_to_binary_dir) endif() #Adding Qt support -if(Qt5_FOUND) - message("libbsarch: Qt5 found, enabling Qt support") - target_link_libraries(libbsarch_OOP PUBLIC Qt5::Core) +if(Qt6_FOUND) + message("libbsarch: Qt6 found, enabling Qt support") + target_link_libraries(libbsarch_OOP PUBLIC Qt::Core) target_compile_definitions(libbsarch PUBLIC "QT") target_compile_definitions(libbsarch_OOP PUBLIC "QT") endif()