CMakeLists.txt

Sun, 09 Feb 2014 21:27:55 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 09 Feb 2014 21:27:55 +0200
changeset 105
6dbac3305614
parent 92
3a00d396bce2
child 109
6572803cd0ca
permissions
-rw-r--r--

- highly reworked variable support, variable declarations now are declared with 'var', uses are prefixed with '$', merged constant handling into variables

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
841562f5a32f - added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents: 75
diff changeset
3 add_subdirectory (updaterevision)
71
11f23fabf8a6 - moved sources to src/, migrated to cmake
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
4 add_executable (botc
88
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
5 src/Commands.cc
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
6 src/DataBuffer.cc
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
7 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
8 src/Expression.cc
88
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
9 src/Format.cc
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
10 src/Lexer.cc
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
11 src/LexerScanner.cc
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
12 src/Main.cc
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
13 src/Parser.cc
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
14 src/String.cc
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
15 src/StringTable.cc
72
03e4d9db3fd9 - major refactoring begins
Teemu Piippo <crimsondusk64@gmail.com>
parents: 71
diff changeset
16 )
03e4d9db3fd9 - major refactoring begins
Teemu Piippo <crimsondusk64@gmail.com>
parents: 71
diff changeset
17
82
841562f5a32f - added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents: 75
diff changeset
18 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
19
841562f5a32f - added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents: 75
diff changeset
20 add_custom_target (revision_check ALL
88
5def6ff8b466 - reformatting
Teemu Piippo <crimsondusk64@gmail.com>
parents: 86
diff changeset
21 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
22 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
23 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
24
75
bf8c57437231 - renamed files to .cxx, restructured parser.cc
Teemu Piippo <crimsondusk64@gmail.com>
parents: 73
diff changeset
25 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
26
841562f5a32f - added the public-domain updaterevision so I can have access to git stuff
Teemu Piippo <crimsondusk64@gmail.com>
parents: 75
diff changeset
27 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
28 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
29 endif()

mercurial