Sun, 19 Jan 2014 20:16:00 +0200
- added the public-domain updaterevision so I can have access to git stuff
- lexer #include now works properly! woot!
- merged commands.def and events.def to botc_defs.bts. This is essentially the "zcommon.acs" of botc.
cmake_minimum_required (VERSION 2.8) add_subdirectory (updaterevision) add_executable (botc src/commands.cc src/data_buffer.cc src/events.cc src/format.cc src/lexer.cc src/lexer_scanner.cc src/main.cc src/object_writer.cc src/parser.cc src/str.cc src/stringtable.cc src/variables.cc ) get_target_property (UPDATEREVISION_EXE updaterevision LOCATION) add_custom_target (revision_check ALL COMMAND ${UPDATEREVISION_EXE} src/gitinfo.h WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} DEPENDS updaterevision) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall") if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG") endif()