-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
56 lines (45 loc) · 1.17 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
#
# project: sky heroes
#
cmake_minimum_required(VERSION 3.6)
# include the fips main cmake file
get_filename_component(FIPS_ROOT_DIR "../fips" ABSOLUTE)
include("${FIPS_ROOT_DIR}/cmake/fips.cmake")
project(block_heroes)
fips_setup(PROJECT block_heroes)
if (FIPS_ANDROID)
fips_begin_sharedlib(cari)
fips_deps(
cari_2d
cari_core
cari_en
cari_gfx
cari_gui
cari_io
cari_net
)
fips_dir(cpp_src)
fips_files(
dummy.cpp
)
fips_end_sharedlib()
endif()
fips_begin_app(block_heroes cmdline)
set(CMAKE_CXX_STANDARD 17)
ari_setup()
ari_tex(assets/blocks.png ${texfmt})
ari_tex(assets/menu.png ${texfmt})
ari_assets()
fips_vs_warning_level(3)
fips_dir(cpp_src)
fips_files(
main.cpp
)
if (FIPS_ANDROID)
link_directories(${CMAKE_SOURCE_DIR}/libs/android/${CMAKE_ANDROID_ARCH_ABI})
fips_deps(cari)
fips_libs(block-heroes curl z BeefRT ffi GLESv3 EGL android log)
endif()
fips_end_app()
ari_proj(block_heroes)
fips_finish()