34 lines
839 B
CMake
34 lines
839 B
CMake
cmake_minimum_required(VERSION 3.18.1)
|
|
project("kde")
|
|
|
|
find_library(log-lib log)
|
|
find_package(game-activity REQUIRED CONFIG)
|
|
find_package(games-frame-pacing REQUIRED CONFIG)
|
|
|
|
# INTEGRATION Füge deine CPP/H Dateien hier hinzu
|
|
add_library(kde SHARED
|
|
Renderer.cpp
|
|
Renderer.h
|
|
Texture.cpp
|
|
Texture.h
|
|
AssetManager.cpp
|
|
AssetManager.h
|
|
StringRepository.h
|
|
StringRepository.cpp
|
|
Hash.h
|
|
Hash.cpp
|
|
GameState.h)
|
|
|
|
if (ANDROID)
|
|
message(STATUS "Building for Android")
|
|
target_sources(kde PUBLIC
|
|
kde.cpp
|
|
NativeEngine.cpp
|
|
NativeEngine.h)
|
|
target_link_libraries(kde ${log-lib}
|
|
EGL
|
|
GLESv3
|
|
android
|
|
game-activity::game-activity
|
|
games-frame-pacing::swappy_static)
|
|
endif() |