From d5a575cae7c05642cb9ed2029e93ccf7a69e967f Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Sun, 24 Mar 2024 15:44:21 +0000 Subject: [PATCH] Disable UI tool by default --- tools/CMakeLists.txt | 6 +++++- tools/bndl_edit/CMakeLists.txt | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 9d8f904..9c998b8 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,2 +1,6 @@ add_subdirectory(bndl_util) -add_subdirectory(bndl_edit) + +option(LIBBNDL_BUILD_UI "Build UI tools" OFF) +if(LIBBNDL_BUILD_UI) + add_subdirectory(bndl_edit) +endif() diff --git a/tools/bndl_edit/CMakeLists.txt b/tools/bndl_edit/CMakeLists.txt index fa96b56..baf6c52 100644 --- a/tools/bndl_edit/CMakeLists.txt +++ b/tools/bndl_edit/CMakeLists.txt @@ -2,8 +2,7 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) # Find Qt Library -find_package(Qt5Widgets REQUIRED) -find_package(Qt5Multimedia REQUIRED) +find_package(Qt5 COMPONENTS Widgets Multimedia REQUIRED) add_executable(bndl_edit WIN32 main.cpp editor.cpp editor.hpp)