Mon, 03 Mar 2014 17:02:38 +0200
- reserved 'constexpr' as a keyword because I know I will need it someday
82
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
1 | cmake_minimum_required (VERSION 2.8) |
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
2 | |
109
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
3 | set (BOTC_HEADERS |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
4 | src/BotStuff.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
5 | src/Commands.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
6 | src/Containers.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
7 | src/DataBuffer.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
8 | src/Events.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
9 | src/Expression.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
10 | src/Format.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
11 | src/Lexer.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
12 | src/LexerScanner.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
13 | src/Macros.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
14 | src/Main.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
15 | src/Parser.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
16 | src/Property.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
17 | src/String.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
18 | src/StringTable.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
19 | src/Tokens.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
20 | src/Types.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
21 | ) |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
22 | |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
23 | set (BOTC_SOURCES |
88 | 24 | src/Commands.cc |
25 | src/DataBuffer.cc | |
26 | src/Events.cc | |
92
3a00d396bce2
- now compiles again, further work on expressions (proper parsing + assignment operator handling (albeit unrelated) + operator adjusting)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
88
diff
changeset
|
27 | src/Expression.cc |
88 | 28 | src/Format.cc |
29 | src/Lexer.cc | |
30 | src/LexerScanner.cc | |
31 | src/Main.cc | |
32 | src/Parser.cc | |
33 | src/String.cc | |
34 | src/StringTable.cc | |
72
03e4d9db3fd9
- major refactoring begins
Teemu Piippo <crimsondusk64@gmail.com>
parents:
71
diff
changeset
|
35 | ) |
03e4d9db3fd9
- major refactoring begins
Teemu Piippo <crimsondusk64@gmail.com>
parents:
71
diff
changeset
|
36 | |
109
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
37 | add_subdirectory (updaterevision) |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
38 | add_subdirectory (namedenums) |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
39 | |
82
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
40 | get_target_property (UPDATEREVISION_EXE updaterevision LOCATION) |
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
41 | |
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
42 | add_custom_target (revision_check ALL |
88 | 43 | COMMAND ${UPDATEREVISION_EXE} src/GitInformation.h |
82
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
44 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
45 | DEPENDS updaterevision) |
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
46 | |
109
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
47 | get_target_property (NAMEDENUMS_EXE namedenums LOCATION) |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
48 | |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
49 | add_custom_target (botc_enum_strings ALL |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
50 | COMMAND ${NAMEDENUMS_EXE} ${BOTC_HEADERS} src/EnumStrings.h |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
51 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
52 | DEPENDS namedenums) |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
53 | |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
54 | add_executable (botc ${BOTC_SOURCES}) |
6572803cd0ca
- added named enumerations to botc source, this should help with debugging
Teemu Piippo <crimsondusk64@gmail.com>
parents:
105
diff
changeset
|
55 | add_dependencies(botc revision_check botc_enum_strings) |
75
bf8c57437231
- renamed files to .cxx, restructured parser.cc
Teemu Piippo <crimsondusk64@gmail.com>
parents:
73
diff
changeset
|
56 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall") |
82
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
57 | |
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
58 | if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") |
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
59 | set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG") |
841562f5a32f
- added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents:
75
diff
changeset
|
60 | endif() |