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
Copy file name to clipboardExpand all lines: docs/dev/app_build.rst
+37-65
Original file line number
Diff line number
Diff line change
@@ -17,71 +17,43 @@ the specific application build instructions first.
17
17
1. Make sure you have a working :doc:`build_env`.
18
18
19
19
2. Get the source code for your application.
20
-
- If you are creating a new C++ application to add support for a device,
21
-
generate a project from the `AppTemplate_cpp_qt <https://github.com/labstreaminglayer/AppTemplate_cpp_qt/generate>`__
22
-
- git clone the application.
20
+
* If you are creating a new C++ application to add support for a device then generate a project from the `AppTemplate_cpp_qt <https://github.com/labstreaminglayer/AppTemplate_cpp_qt/generate>`__
21
+
* git clone the application
23
22
24
23
3. Create the build directory
25
-
26
-
- You can use a GUI file manager to do this part or you can do it by
27
-
command line as below.
28
-
- Open a terminal/shell/command prompt and change to the
29
-
repository directory.
30
-
31
-
- If the build directory is already there then delete it
- Use the interface to set or add options/paths (:guilabel:`Add Entry`).
63
-
64
-
- :ref:`Qt5` if the guessed path is not right
65
-
- :ref:`Boost` if the default was not correct
66
-
- A path where redistributable binaries get copied
67
-
(``CMAKE_INSTALL_PREFIX``)
68
-
- Build type (``CMAKE_BUILD_TYPE``, either ``Release`` or
69
-
``Debug``). You can change this in Visual Studio later.
70
-
- Click on :guilabel:`Configure` again to confirm changes.
71
-
72
-
- Click on :guilabel:`Generate` to create the build files / Visual Studio
73
-
Solution file
30
+
* Option 1 - Visual Studio 2017 or later
31
+
* Open the :file:`CMakeLists.txt` file in Visual Studio (:guilabel:`File->Open->CMake`)
32
+
* Change CMake settings via :guilabel:`CMake->Change CMake Settings`
33
+
* See `Common CMake Settings <#common-cmake-options>`__ below
34
+
* Change the selected project from the drop-down menu (:guilabel:`x64-Debug`, :guilabel:`x64-Release`). This will trigger a CMake re-configure with the new variables.
35
+
* Option 2 - Using commandline.
36
+
* Open a Terminal window or, on Windows, a ``x64 Native Tools Command Prompt for VS2017`` (or VS2019, as needed).
37
+
* Run cmake with appropriate `commandline options <#common-cmake-options>`__.
38
+
* Option 3 - Using the GUI
39
+
* Open a terminal/shell/command prompt and change to the repository directory.
40
+
* Run :cmd:`cmake-gui -S . -B build`
41
+
* Do an initial :guilabel:`Configure`. Agree to create the directory if asked.
42
+
* Select your compiler and click Finish.
43
+
* Use the interface to set or add options/paths (:guilabel:`Add Entry`).
44
+
* :ref:`Qt5` if the guessed path is not right
45
+
* :ref:`Boost` if the default was not correct
46
+
* A path where redistributable binaries get copied (``CMAKE_INSTALL_PREFIX``)
47
+
* Build type (``CMAKE_BUILD_TYPE``, either ``Release`` or ``Debug``). You can change this in Visual Studio later.
48
+
* Click on :guilabel:`Configure` again to confirm changes.
49
+
* Click on :guilabel:`Generate` to create the build files / Visual Studio Solution file
0 commit comments