CMakeLists.txt

Sun, 19 Jan 2014 20:16:00 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 19 Jan 2014 20:16:00 +0200
changeset 82
841562f5a32f
parent 75
bf8c57437231
child 86
43fe4be38a58
permissions
-rw-r--r--

- 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()

mercurial