-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
61 lines (55 loc) · 1.8 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
set(NCPROJECT_NAME "ncInvaders")
set(NCPROJECT_EXE_NAME "ncinvaders")
set(NCPROJECT_VENDOR "Angelo Theodorou")
set(NCPROJECT_COPYRIGHT "Copyright ©2016-2022 ${NCPROJECT_VENDOR}")
set(NCPROJECT_DESCRIPTION "A simplified version of Space Invaders made with the nCine")
set(NCPROJECT_HOMEPAGE "https://ncine.github.io")
set(NCPROJECT_REVERSE_DNS "io.github.ncine.ncinvaders")
set(NCPROJECT_SOURCES
src/invaders.h
src/invaders.cpp
src/Configuration.h
src/SpritePool.h
src/SpritePool.cpp
src/Game.h
src/Game.cpp
src/ProjectilePool.h
src/ProjectilePool.cpp
src/EnemyPool.h
src/EnemyPool.cpp
src/Player.h
src/Player.cpp
src/CollisionManager.h
src/CollisionManager.cpp
)
set(NCPROJECT_ANDROID_ASSETS
data/DroidSans32_256.fnt
android/DroidSans32_256.webp
data/bomb.png
data/enemy1.png
data/enemy2.png
data/player.png
data/rocket.png
)
# Don't edit beyond this line
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
return()
endif()
cmake_minimum_required(VERSION 3.13)
project(${NCPROJECT_NAME})
find_path(NCPROJECT_DIR cmake/project_main.cmake
PATHS ${nCine_DIR} $ENV{NCINE_DIR}
PATH_SUFFIXES project ../project ../../../project ../../../share/ncine/project
NO_CMAKE_FIND_ROOT_PATH # For Emscripten
DOC "Path to the nCine template project scripts")
if(IS_DIRECTORY ${NCPROJECT_DIR})
include(${NCPROJECT_DIR}/cmake/project_main.cmake)
else()
if(NOT DEFINED nCine_DIR AND "$ENV{NCINE_DIR}" STREQUAL "")
message(FATAL_ERROR "Set the nCine_DIR CMake variable or the NCINE_DIR environment variable to a valid nCine directory.")
elseif(DEFINED nCine_DIR)
message(FATAL_ERROR "The nCine_DIR CMake variable \"${nCine_DIR}\" is not a valid nCine directory.")
elseif(NOT "$ENV{NCINE_DIR}" STREQUAL "")
message(FATAL_ERROR "The NCINE_DIR environment variable \"$ENV{NCINE_DIR}\" is not a valid nCine directory.")
endif()
endif()