| 1 cmake_minimum_required (VERSION 2.8) |
1 cmake_minimum_required (VERSION 2.8) |
| 2 |
2 |
| 3 add_subdirectory (updaterevision) |
3 add_subdirectory (updaterevision) |
| 4 add_executable (botc |
4 add_executable (botc |
| 5 src/commands.cc |
5 src/Commands.cc |
| 6 src/data_buffer.cc |
6 src/DataBuffer.cc |
| 7 src/events.cc |
7 src/Events.cc |
| 8 src/format.cc |
8 src/Format.cc |
| 9 src/lexer.cc |
9 src/Lexer.cc |
| 10 src/lexer_scanner.cc |
10 src/LexerScanner.cc |
| 11 src/main.cc |
11 src/Main.cc |
| 12 src/parser.cc |
12 src/Parser.cc |
| 13 src/str.cc |
13 src/String.cc |
| 14 src/stringtable.cc |
14 src/StringTable.cc |
| 15 src/variables.cc |
15 src/Variables.cc |
| 16 ) |
16 ) |
| 17 |
17 |
| 18 get_target_property (UPDATEREVISION_EXE updaterevision LOCATION) |
18 get_target_property (UPDATEREVISION_EXE updaterevision LOCATION) |
| 19 |
19 |
| 20 add_custom_target (revision_check ALL |
20 add_custom_target (revision_check ALL |
| 21 COMMAND ${UPDATEREVISION_EXE} src/gitinfo.h |
21 COMMAND ${UPDATEREVISION_EXE} src/GitInformation.h |
| 22 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
22 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
| 23 DEPENDS updaterevision) |
23 DEPENDS updaterevision) |
| 24 |
24 |
| 25 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall") |
25 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall") |
| 26 |
26 |