fix: fix qwfassoc build error
- fix qwfassoc build error - set version of wfassoc to official version - add version restriction when qwfassoc finding wfassoc - rename qwfassoc project name in cmake configuration file - set standalone build to OFF in default
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
project(qwfassoc_suite LANGUAGES CXX)
|
||||
project(qwfassoc LANGUAGES CXX)
|
||||
|
||||
# Qt 6 requires C++17 at minimum.
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
@@ -22,10 +22,10 @@ set(CMAKE_AUTORCC ON)
|
||||
# toml11 is only needed when the standalone executable is built, so it is
|
||||
# looked up conditionally below.
|
||||
find_package(Qt6 REQUIRED COMPONENTS Widgets LinguistTools)
|
||||
find_package(wfassoc REQUIRED)
|
||||
find_package(wfassoc 1.0.0 REQUIRED)
|
||||
|
||||
# The standalone executable is optional: embedders may want only the library.
|
||||
option(QWFASSOC_BUILD_STANDALONE "Build the qwfassoc-standalone executable" ON)
|
||||
option(QWFASSOC_BUILD_STANDALONE "Build the qwfassoc-standalone executable" OFF)
|
||||
|
||||
add_subdirectory(qwfassoc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user