
# The project ..
project (lua-br C)
set (lua-br_version 5.4)


# and some cmake-directives.
cmake_minimum_required(VERSION 2.6)

if (COMMAND cmake_policy)
  cmake_policy (SET CMP0003 OLD)
endif (COMMAND cmake_policy)


# Options
option (LUA_MOD "Build as lua extension" OFF)
option (LUA_EXE "Build as binary" ON)


# Catch a nonsensical error ..
if (NOT LUA_MOD AND NOT LUA_EXE)
  message (FATAL_ERROR "At least one build option must be selected")
endif (NOT LUA_MOD AND NOT LUA_EXE)



# Add subdirectories
add_subdirectory(src)

