We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2c1b23 commit bfcf815Copy full SHA for bfcf815
CMakeLists.txt
@@ -1,18 +1,10 @@
1
cmake_minimum_required(VERSION 3.15)
2
-
3
project(CMakeSFMLProject LANGUAGES CXX)
4
5
-# Tell CMake to build a executable
6
-add_executable(CMakeSFMLProject src/main.cpp)
7
8
-# CMake SFML Project uses C++17 features
9
-target_compile_features(CMakeSFMLProject PRIVATE cxx_std_17)
10
11
-# Find SFML
12
find_package(SFML 2.5 COMPONENTS graphics REQUIRED)
13
14
-# Link SFML
+add_executable(CMakeSFMLProject src/main.cpp)
15
target_link_libraries(CMakeSFMLProject PRIVATE sfml-graphics)
+target_compile_features(CMakeSFMLProject PRIVATE cxx_std_17)
16
17
-# Install executable
18
install(TARGETS CMakeSFMLProject)
0 commit comments