blob: f4c3228b947441479790a44535d4a79b9c3f06c7 (
plain)
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
|
cmake_minimum_required(VERSION 3.16)
project(bullethell)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS No)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic")
set(CMAKE_CXX_RELEASE "-O3")
if(EMSCRIPTEN)
set(CMAKE_PREFIX_PATH "$ENV{HOME}/.emscripten_cache/sysroot;/usr/lib/emscripten/system")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s USE_GLFW=3 -s ASSERTIONS=1 -s WASM=1 -s ASYNCIFY")
set(raylib_USE_STATIC_LIBS ON)
endif()
find_package(raylib 3 REQUIRED)
add_executable(
${PROJECT_NAME}
ConstantVelocity.cpp
Enemy.cpp
EnemyFactory.cpp
ExampleGenerator.cpp
Falling.cpp
FallingAndOscillating.cpp
Game.cpp
GameScreen.cpp
Generator.cpp
KeyboardController.cpp
main.cpp
Oscillating.cpp
Player.cpp
TestStage.cpp
TitleScreen.cpp
)
target_link_libraries(${PROJECT_NAME} raylib)
|