Skip to content

Commit dc9f695

Browse files
kyeastmoodiamsergio
authored andcommitted
INSTALL.txt: Add info about CMake FetchContent
1 parent 918ab59 commit dc9f695

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

INSTALL.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,22 @@ That's all you need to do (the imported target also brings in the include direct
9595

9696
You may also need to point the CMAKE_PREFIX_PATH environment variable depending
9797
on where you installed KDSingleApplication.
98+
99+
You can also use KDSingleApplication with CMake FetchContent.
100+
In your CMake file:
101+
102+
qt_add_executable(MyApp)
103+
104+
include(FetchContent)
105+
106+
FetchContent_Declare(
107+
kdsingleapplication
108+
GIT_REPOSITORY https://github.com/KDAB/KDSingleApplication.git
109+
GIT_TAG v1.2.1
110+
)
111+
112+
FetchContent_MakeAvailable(kdsingleapplication)
113+
114+
target_link_libraries(MyApp PRIVATE KDAB::kdsingleapplication)
115+
116+
The linked target will bring in the include directories.

0 commit comments

Comments
 (0)