Commit 15bf1297 authored by Jonas Johan Solsvik's avatar Jonas Johan Solsvik 🎮
Browse files

Add CMakeLists.txt and sfml submodule

parent 6a86a6f4
[submodule "external/sfml"]
path = external/sfml
url = https://github.com/SFML/SFML
project(sfml-sample)
cmake_minimum_required (VERSION 3.16.3 FATAL_ERROR)
set(SRCDIR "${CMAKE_SOURCE_DIR}/src")
set(BINDIR ${CMAKE_BINARY_DIR})
add_executable(${CMAKE_PROJECT_NAME} "${SRCDIR}/main.cpp")
set_target_properties(
${CMAKE_PROJECT_NAME}
PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
RUNTIME_OUTPUT_DIRECTORY "${BINDIR}"
LIBRARY_OUTPUT_DIRECTORY "${BINDIR}/bin"
)
add_subdirectory("./external/sfml")
target_link_libraries(
${CMAKE_PROJECT_NAME}
PRIVATE sfml-window
PRIVATE sfml-graphics
PRIVATE sfml-audio
)
Subproject commit 241b542ca30751e9283230288b4d704fe3e80981
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment