Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (45 sloc) 2.413 kB
8af3bf1 initial import
Dmytro Lytovchenko authored
1 #-----------------------------------------------------------------------
2 #
3 # This is minimal game skeleton in HGE based on HGE_TUTORIAL 06
4 # to adapt this to your new game, search and replace HGESKEL with your project name
5 #
cf03aca wtfpl public license
Dmytro Lytovchenko authored
6 # This program is free software. It comes without any warranty, to
7 # the extent permitted by applicable law. You can redistribute it
8 # and/or modify it under the terms of the Do What The Fuck You Want
9 # To Public License, Version 2, as published by Sam Hocevar. See
10 # http://sam.zoy.org/wtfpl/COPYING for more details.
11 #
8af3bf1 initial import
Dmytro Lytovchenko authored
12 #-----------------------------------------------------------------------
13 project( HGESKEL )
14 cmake_minimum_required( VERSION 2.8 )
15
16
17 ##--- set this to 8 or 9 ---
648d763 1
Dmytro Lytovchenko authored
18 SET( HGE_DIRECTX_VER "9" ) # will be ignored by original HGE from relishgames.com
19 SET( HGE_UNICODE "0" ) # will be ignored by original HGE from relishgames.com
20 SET( HGE_INCLUDE_DIR "../hge181" ) # this will be used to find "include/" dir for "hge.h"
21
22
8af3bf1 initial import
Dmytro Lytovchenko authored
23
24 add_definitions( "-DHGE_DIRECTX_VER=${HGE_DIRECTX_VER}" "-DHGE_UNICODE=${HGE_UNICODE}" )
25 # disable warnings on STD non conformance and security issues
26 add_definitions( "-D_CRT_SECURE_NO_WARNINGS" "-D_CRT_NONSTDC_NO_WARNINGS" "-D_SCL_SECURE_NO_WARNINGS" "-D_WIN32_WINNT=0x0501" "/MP" )
27
28 #------ sources ------
648d763 1
Dmytro Lytovchenko authored
29 set( HGESKEL_SRC
6d02e08 more edits + added gamestate class
Dmytro Lytovchenko authored
30 src/game.cpp src/game.h
0f41c16 this still works. With game states now
Dmytro Lytovchenko authored
31 src/game_state.cpp src/game_state.h
491b15b class files (empty)
Dmytro Lytovchenko authored
32 src/menuitem.cpp src/menuitem.h
33 src/player.cpp src/player.h
34 src/world.cpp src/world.h
35 src/creature.cpp src/creature.h
36 src/projectile.cpp src/projectile.h
ef928a2 world with coins and mario
Dmytro Lytovchenko authored
37 src/sprite_manager.cpp src/sprite_manager.h
491b15b class files (empty)
Dmytro Lytovchenko authored
38 )
8af3bf1 initial import
Dmytro Lytovchenko authored
39
648d763 1
Dmytro Lytovchenko authored
40 SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${HGESKEL_SOURCE_DIR}/bin CACHE PATH "Single Directory for all executables." )
41 SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${HGESKEL_SOURCE_DIR}/bin CACHE PATH "Single Directory for all executables." )
42 SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${HGESKEL_SOURCE_DIR}/linklib CACHE PATH "Single Directory for all static libraries." )
43
8af3bf1 initial import
Dmytro Lytovchenko authored
44 #------ additional includes ------
648d763 1
Dmytro Lytovchenko authored
45 include_directories( ${HGE_INCLUDE_DIR} ${HGE_INCLUDE_DIR}/include )
8af3bf1 initial import
Dmytro Lytovchenko authored
46
47 #------ link directories listed ------
648d763 1
Dmytro Lytovchenko authored
48 link_directories( ${HGESKEL_SOURCE_DIR}/linklib )
49 link_libraries( hge hgehelpers )
8af3bf1 initial import
Dmytro Lytovchenko authored
50
51 #------ target -----
648d763 1
Dmytro Lytovchenko authored
52 add_executable( HGESKEL WIN32 ${HGESKEL_SRC} )
8af3bf1 initial import
Dmytro Lytovchenko authored
53
54 if( MSVC )
55 SET_TARGET_PROPERTIES( HGESKEL PROPERTIES LINK_FLAGS "/NODEFAULTLIB:libci" )
56 endif()
Something went wrong with that request. Please try again.