Sat, 12 Jul 2014 23:04:46 +0300
- changed all source files to use my correct legal name instead of my calling name
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 |
119
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
4 | src/botStuff.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
5 | src/commands.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
6 | src/list.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
7 | src/dataBuffer.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
8 | src/events.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
9 | src/expression.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
10 | src/format.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
11 | src/lexer.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
12 | src/lexerScanner.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
13 | src/macros.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
14 | src/main.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
15 | src/parser.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
16 | src/property.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
17 | src/string.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
18 | src/stringTable.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
19 | src/tokens.h |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
20 | src/types.h |
109
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 |
119
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
24 | src/commands.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
25 | src/dataBuffer.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
26 | src/events.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
27 | src/expression.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
28 | src/format.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
29 | src/lexer.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
30 | src/lexerScanner.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
31 | src/main.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
32 | src/parser.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
33 | src/string.cpp |
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
34 | src/stringTable.cpp |
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 |
119
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
43 | COMMAND ${UPDATEREVISION_EXE} src/gitinfo.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 |
120
5ea0faefa82a
- updated .gitignore
Teemu Piippo <crimsondusk64@gmail.com>
parents:
119
diff
changeset
|
50 | COMMAND ${NAMEDENUMS_EXE} ${BOTC_HEADERS} src/enumstrings.h |
109
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") |
119
bdf8d46c145f
- renamed source files to camelCase
Teemu Piippo <crimsondusk64@gmail.com>
parents:
109
diff
changeset
|
60 | endif() |