Skip to content

Commit 6cbc904

Browse files
committed
Add blurb about linking audio and network modules as needed
1 parent ed067a2 commit 6cbc904

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ The template starts out very basic, but might receive additional features over t
1414
1. Follow the above instructions about how to use GitHub's project template feature to create your own project.
1515
1. Clone your new GitHub repo and open the repo in your text editor of choice.
1616
1. Open [CMakeLists.txt](CMakeLists.txt). Rename the project and the executable to whatever name you want.
17-
1. If you want to add or remove any .cpp files, change the source files listed in the [`add_executable`](CMakeLists.txt#L10) call in CMakeLists.txt to match the source files your project requires. If you plan on keeping the default main.cpp file then no changes are required.
17+
1. If you want to add or remove any .cpp files, change the source files listed in the `add_executable` call in CMakeLists.txt to match the source files your project requires. If you plan on keeping the default main.cpp file then no changes are required.
18+
1. If your code uses the Audio or Network modules then add `sfml-audio` or `sfml-network` to the `target_link_libraries` call alongside the existing `sfml-graphics` library that is being linked.
1819
1. If you use Linux, install SFML's dependencies using your system package manager. On Ubuntu and other Debian-based distributions you can use the following commands:
1920
```
2021
sudo apt update

0 commit comments

Comments
 (0)