Skip to content

Commit

Permalink
Switch to CMake build system
Browse files Browse the repository at this point in the history
  • Loading branch information
Oberon00 committed Sep 16, 2012
1 parent 271f603 commit 864b61c
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 317 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 2.6)
project(luabind)

find_package(Boost 1.51.0 REQUIRED)

# Adjust to actual locations
set (LUABINARIES_DIR "C:/myProgs/cpp/Bibliotheken/luabinaries")
set (LUA_INCLUDE_DIR "${LUABINARIES_DIR}/include")
set (LUA_LIBRARY
optimized "${LUABINARIES_DIR}/lua52.lib"
debug "${LUABINARIES_DIR}/lua52-d.lib")
add_subdirectory("src")
248 changes: 0 additions & 248 deletions Jamroot

This file was deleted.

112 changes: 112 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
include_directories(
${Boost_INCLUDE_DIRS} ${LUA_INCLUDE_DIR} ${CMAKE_SOURCE_DIR})

set(luabind_SRCS
class.cpp
class_info.cpp
class_registry.cpp
class_rep.cpp
create_class.cpp
error.cpp
exception_handler.cpp
function.cpp
inheritance.cpp
link_compatibility.cpp
object_rep.cpp
open.cpp
pcall.cpp
scope.cpp
stack_content_by_name.cpp
weak_ref.cpp
wrapper_base.cpp)

set(luabind_HDRS
../luabind/adopt_policy.hpp
../luabind/back_reference.hpp
../luabind/back_reference_fwd.hpp
../luabind/class.hpp
../luabind/class_info.hpp
../luabind/config.hpp
../luabind/container_policy.hpp
../luabind/copy_policy.hpp
../luabind/dependency_policy.hpp
../luabind/discard_result_policy.hpp
../luabind/error.hpp
../luabind/exception_handler.hpp
../luabind/from_stack.hpp
../luabind/function.hpp
../luabind/get_main_thread.hpp
../luabind/get_pointer.hpp
../luabind/handle.hpp
../luabind/iterator_policy.hpp
../luabind/luabind.hpp
../luabind/lua_include.hpp
../luabind/make_function.hpp
../luabind/nil.hpp
../luabind/object.hpp
../luabind/open.hpp
../luabind/operator.hpp
../luabind/out_value_policy.hpp
../luabind/prefix.hpp
../luabind/raw_policy.hpp
../luabind/return_reference_to_policy.hpp
../luabind/scope.hpp
../luabind/shared_ptr_converter.hpp
../luabind/tag_function.hpp
../luabind/typeid.hpp
../luabind/value_wrapper.hpp
../luabind/version.hpp
../luabind/weak_ref.hpp
../luabind/wrapper_base.hpp
../luabind/yield_policy.hpp)

set(luabind_detail_HDRS
../luabind/detail/calc_arity.hpp
../luabind/detail/call.hpp
../luabind/detail/call_function.hpp
../luabind/detail/call_member.hpp
../luabind/detail/call_operator_iterate.hpp
../luabind/detail/class_cache.hpp
../luabind/detail/class_registry.hpp
../luabind/detail/class_rep.hpp
../luabind/detail/compute_score.hpp
../luabind/detail/constructor.hpp
../luabind/detail/conversion_storage.hpp
../luabind/detail/convert_to_lua.hpp
../luabind/detail/debug.hpp
../luabind/detail/decorate_type.hpp
../luabind/detail/deduce_signature.hpp
../luabind/detail/enum_maker.hpp
../luabind/detail/format_signature.hpp
../luabind/detail/garbage_collector.hpp
../luabind/detail/has_get_pointer.hpp
../luabind/detail/inheritance.hpp
../luabind/detail/instance_holder.hpp
../luabind/detail/is_indirect_const.hpp
../luabind/detail/link_compatibility.hpp
../luabind/detail/make_instance.hpp
../luabind/detail/most_derived.hpp
../luabind/detail/object_call.hpp
../luabind/detail/object_funs.hpp
../luabind/detail/object_rep.hpp
../luabind/detail/open.hpp
../luabind/detail/operator_id.hpp
../luabind/detail/other.hpp
../luabind/detail/pcall.hpp
../luabind/detail/pointee_sizeof.hpp
../luabind/detail/pointee_typeid.hpp
../luabind/detail/policy.hpp
../luabind/detail/primitives.hpp
../luabind/detail/property.hpp
../luabind/detail/ref.hpp
../luabind/detail/signature_match.hpp
../luabind/detail/stack_utils.hpp
../luabind/detail/typetraits.hpp
../luabind/detail/yes_no.hpp)

source_group("detail headers" FILES ${luabind_detail_HDRS})

set(CMAKE_DEBUG_POSTFIX "-d")
add_library(luabind ${luabind_SRCS} ${luabind_HDRS} ${luabind_detail_HDRS})

target_link_libraries(luabind ${LUA_LIBRARIES})
Loading

0 comments on commit 864b61c

Please sign in to comment.