build: lightpreview is enabled by default
This commit is contained in:
parent
69bc2c04c0
commit
2859f80465
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue