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()
