generated from helynranta/game-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (26 loc) · 908 Bytes
/
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
cmake_minimum_required(VERSION 3.21.2)
project(pong CXX)
find_package(engine CONFIG REQUIRED)
include(engine_create)
set(PROJECT_FILE "${CMAKE_CURRENT_LIST_DIR}/pong.project")
engine_create_plugin(${PROJECT_NAME}
PROJECT_FILE "${PROJECT_FILE}"
SOURCE_FILES
src/scenes/game.cpp
src/scenes/load.cpp
src/scenes/menu.cpp
src/systems/ball_particle_system.cpp
src/plugin.cpp
INCLUDE_FILES
src/scenes/game.hpp
src/scenes/load.hpp
src/scenes/menu.hpp
src/systems/ball_particle_system.hpp
src/tags.hpp
)
engine_create_launcher(
SOURCE_DIR "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include/engine/launcher"
PROJECT_FILE "${PROJECT_FILE}"
)
target_precompile_headers(${PROJECT_NAME} PUBLIC src/engine.hxx)
engine_install_plugin(${PROJECT_NAME})