build: lightpreview is enabled by default

This commit is contained in:
Eric Wasylishen 2023-09-09 16:24:56 -06:00
parent 69bc2c04c0
commit 2859f80465
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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