Commit 59d3b173 authored by Jonas Johan Solsvik's avatar Jonas Johan Solsvik 🎮
Browse files

use STATIC SFML

parent 7d331643
......@@ -3,6 +3,7 @@ cmake_minimum_required (VERSION 3.16.3 FATAL_ERROR)
set(SRCDIR "${CMAKE_SOURCE_DIR}/src")
set(BINDIR ${CMAKE_BINARY_DIR})
set(SFML_USE_STATIC_STD_LIBS TRUE)
add_executable(${CMAKE_PROJECT_NAME} "${SRCDIR}/main.cpp")
......
run: build
./build/double-trouble
./build/double-trouble;
build: $(shell find src -type f)
mkdir -p build/;
cmake -S . -B build/
make -C build/;
build: $(shell find src -type f) CMakeLists.txt
mkdir -p build && \
cmake -S . -B build && \
make -C build;
#include <cstdio>
int main() {
std::puts("Hello world\n");
std::puts("Hello cube!\n");
return 0;
}
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