Sha256: cda4bdc11418842441d2c3dca07af336fe015558c352a552bbe25dab79f3e486

Contents?: true

Size: 1.46 KB

Versions: 11

Compression:

Stored size: 1.46 KB

Contents

cmake_minimum_required(VERSION 2.6)
# ----------------------------------------------------------------------------
#  CMake file for Lua. See root CMakeLists.txt
#
# ----------------------------------------------------------------------------
project(Matrix)

include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}/include
  ${CMAKE_CURRENT_SOURCE_DIR}/vendor/lua
  ${CMAKE_CURRENT_SOURCE_DIR}/../../../lib/dub/lua
)

# ==============================================================================
#
#  Platform guessing
#
# ==============================================================================
if(UNIX)
  if(APPLE)
    # macosx
    set(PLAT_LINK "-bundle -undefined dynamic_lookup -all_load")
  else(APPLE)
    # linux
    set(PLAT_LINK "-shared")
  endif(APPLE)
else(UNIX)
  if(WIN32)
    # ?
  else(WIN32)
    # ?
  endif(WIN32)
endif(UNIX)

# ----------------------------------------------------------------------------------
# 				Define the library target:
# ----------------------------------------------------------------------------------

set(the_target "Matrix")

file(GLOB lib_srcs bindings/*.cpp)
file(GLOB lib_hdrs bindings/*.h)
set(lib_ext_hdrs)

set(CMAKE_CXX_FLAGS "-DLUA_USE_DLOPEN -DLUA_USE_POSIX")
add_library(${the_target} STATIC ${lib_srcs} ${lib_hdrs} ${lib_ext_hdrs})

set_target_properties(${the_target}
	PROPERTIES OUTPUT_NAME "${the_target}"
	#LINK_FLAGS ${PLAT_LINK}
	PREFIX ""
	SUFFIX ".a" #".so"
	LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/vendor/lua
	)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dub-1.0.0 test/fixtures/app/CMakeLists.txt
dub-0.7.0 test/fixtures/app/CMakeLists.txt
dub-0.6.6 test/fixtures/app/CMakeLists.txt
dub-0.6.5 test/fixtures/app/CMakeLists.txt
dub-0.6.4 test/fixtures/app/CMakeLists.txt
dub-0.6.3 test/fixtures/app/CMakeLists.txt
dub-0.6.2 test/fixtures/app/CMakeLists.txt
dub-0.6.1 test/fixtures/app/CMakeLists.txt
dub-0.6.0 test/fixtures/app/CMakeLists.txt
dub-0.5.1 test/fixtures/app/CMakeLists.txt
dub-0.5.0 test/fixtures/app/CMakeLists.txt