set project cpp-files to c++17 when qt is included, search and link to a threading library
This commit is contained in:
@@ -130,6 +130,9 @@ if(APPLE)
|
||||
endif()
|
||||
|
||||
if(QT)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
find_package(Qt5 COMPONENTS Core Widgets REQUIRED)
|
||||
endif()
|
||||
|
||||
@@ -249,4 +252,4 @@ elseif(WIN32)
|
||||
add_subdirectory(win)
|
||||
else()
|
||||
add_subdirectory(unix)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user