summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-28 19:15:36 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-28 19:15:36 +0200
commit4119ff9e3a57d197e36b34f8f6ef4208871b032e (patch)
treeb917ca7f069f9447420c47eefb1447d9d27916fe /src/CMakeLists.txt
parent9729ff528df0919630e0668484c52ce3182c5d19 (diff)
Create first hello world in SFML (Thank you LaurentGomila for your FindSFML.cmake)
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..b30833e
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,15 @@
+#Defined executable
+add_executable(
+ 2P11
+ ./main.cpp
+)
+
+#Find all libraries
+find_package(SFML 2.2 COMPONENTS system window graphics audio REQUIRED)
+
+
+#Include "Includes" and "Libraries"
+include_directories(${SFML_INCLUDE_DIR})
+target_link_libraries(2P11 ${SFML_LIBRARIES})
+
+message("${SFML_LIBRARIES}")