From 2ae29be35783e2bfff9957de613489329dfde26e Mon Sep 17 00:00:00 2001 From: luis Date: Thu, 16 Oct 2025 11:36:10 +0200 Subject: [PATCH] makelist test --- CMakeLists.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..abfdcc6 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.10) +project(info2Praktikum_Wortsalat C) + +set(CMAKE_C_STANDARD 11) + +# Include paths +include_directories( + Start_Windows + Start_Windows/raylib + Start_Windows/unity +) + +# Executable target +add_executable(info2Praktikum_Wortsalat + Start_Windows/game.c + Start_Windows/graphicalGame.c + Start_Windows/input.c + Start_Windows/main.c + # Start_Windows/unity/unity.c +) + +# Link static libraries +target_link_libraries(info2Praktikum_Wortsalat + ${CMAKE_SOURCE_DIR}/Start_Windows/windows/libraylib_mingw.a +) + +# Optional: falls du auf Windows bist und -lopengl32 o.รค. brauchst: +if (WIN32) + target_link_libraries(info2Praktikum_Wortsalat opengl32 gdi32 winmm) +endif()