blob: 98350e12be650a4e2d2003c85b60fb5df4a88da1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4dd2fc3..c57162c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,26 +35,7 @@ if(MSVC)
add_link_options(/GUARD:CF)
endif()
-# Dependency can be fetched via flatpak builder
-if(EXISTS "${CMAKE_SOURCE_DIR}/external/Qt-Color-Widgets/CMakeLists.txt")
- add_subdirectory("${CMAKE_SOURCE_DIR}/external/Qt-Color-Widgets" EXCLUDE_FROM_ALL)
-else()
- FetchContent_Declare(
- qtColorWidgets
- GIT_REPOSITORY https://gitlab.com/mattbas/Qt-Color-Widgets.git
- GIT_TAG 5d52e907e50dc88cf969b41cea44665ff6c475b1
- )
- #Workaround for duplicate GUID in windows WIX installer
- if(WIN32)
- FetchContent_GetProperties(qtColorWidgets)
- if(NOT qtcolorwidgets_POPULATED)
- FetchContent_Populate(qtColorWidgets)
- add_subdirectory(${qtcolorwidgets_SOURCE_DIR} ${qtcolorwidgets_BINARY_DIR} EXCLUDE_FROM_ALL)
- endif()
- else()
- FetchContent_MakeAvailable(qtColorWidgets)
- endif()
-endif()
+find_package(QtColorWidgets REQUIRED)
# This can be read from ${PROJECT_NAME} after project() is called
if(APPLE)
|