From 2859f804650bdff7b2d92e9dda9d009168f0897b Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 9 Sep 2023 16:24:56 -0600 Subject: [PATCH] build: lightpreview is enabled by default --- CMakeLists.txt | 2 +- lightpreview/CMakeLists.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index efc6b53d..a386b09f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,7 +126,7 @@ add_subdirectory(maputil) option(DISABLE_TESTS "Disables Tests" OFF) option(DISABLE_DOCS "Disables Docs" OFF) -option(ENABLE_LIGHTPREVIEW "Enable light preview tool" OFF) +option(ENABLE_LIGHTPREVIEW "Enable light preview tool" ON) if (ENABLE_LIGHTPREVIEW) add_subdirectory(lightpreview) diff --git a/lightpreview/CMakeLists.txt b/lightpreview/CMakeLists.txt index 793276f7..03ed3995 100644 --- a/lightpreview/CMakeLists.txt +++ b/lightpreview/CMakeLists.txt @@ -4,6 +4,11 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) find_package(Qt5Widgets) +if(Qt5Widgets_FOUND) +else() + message(WARNING "Qt5 not found, disabling lightpreview") + return() +endif() add_executable(lightpreview main.cpp