You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want connect **SimpleFileDialog** library to your CMake project as source code you can make follow. For example, if your repository has structure:
71
+
72
+
```bash
73
+
CMakeLists.txt
74
+
src
75
+
CMakeList.txt
76
+
yourLib.h
77
+
yourLib.cpp
78
+
```
79
+
80
+
You can add repository **SimpleFileDialog** as submodule by commands:
File **3rdparty/CMakeLists.txt** adds folder **SimpleFileDialog** to your project and excludes test application (SimpleFileDialog class test applications) from compiling. Your repository new structure will be:
139
+
140
+
```bash
141
+
CMakeLists.txt
142
+
src
143
+
CMakeList.txt
144
+
yourLib.h
145
+
yourLib.cpp
146
+
3rdparty
147
+
CMakeLists.txt
148
+
SimpleFileDialog
149
+
```
150
+
151
+
Next you need include folder 3rdparty in main **CMakeLists.txt** file of your repository. Add string at the end of your main **CMakeLists.txt**:
152
+
153
+
```cmake
154
+
add_subdirectory(3rdparty)
155
+
```
156
+
157
+
Next you have to include SimpleFileDialog library in your **src/CMakeLists.txt** file:
0 commit comments