Skip to content

Commit 0088727

Browse files
committed
Move Single Application to FetchContent
1 parent 4c1bb72 commit 0088727

27 files changed

+8
-2621
lines changed

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ FetchContent_Declare(
4343
)
4444
FetchContent_MakeAvailable(qtColorWidgets)
4545

46+
47+
4648
# This can be read from ${PROJECT_NAME} after project() is called
4749
if (APPLE)
4850
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
@@ -111,7 +113,12 @@ if(USE_EXTERNAL_SINGLEAPPLICATION)
111113
find_library(QTSINGLEAPPLICATION_LIBRARY NAMES ${qtsingleapplication_libs})
112114
message(STATUS "Using external SingleApplication library")
113115
else()
114-
add_subdirectory(external/singleapplication)
116+
FetchContent_Declare(
117+
singleApplication
118+
GIT_REPOSITORY https://github.com/itay-grudev/SingleApplication.git
119+
GIT_TAG v3.1.5
120+
)
121+
FetchContent_MakeAvailable(SingleApplication)
115122
set(QTSINGLEAPPLICATION_LIBRARY SingleApplication::SingleApplication)
116123
endif()
117124

external/singleapplication/CHANGELOG.md

Lines changed: 0 additions & 285 deletions
This file was deleted.

external/singleapplication/CMakeLists.txt

Lines changed: 0 additions & 34 deletions
This file was deleted.

external/singleapplication/LICENSE

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)