summaryrefslogtreecommitdiff
path: root/indra/cmake/Lualibs.cmake
blob: b6a7de41c680dfa04e79215b48e8c78cdc3064d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- cmake -*-

include_guard()

include(Prebuilt)

add_library( ll::lualibs INTERFACE IMPORTED )

use_system_binary( lualibs )

use_prebuilt_binary(lua)

target_include_directories( ll::lualibs SYSTEM INTERFACE
                            ${LIBS_PREBUILT_DIR}/include
)

if (WINDOWS)
  target_link_libraries(ll::lualibs INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE}/lua54.lib)
elseif (DARWIN)
  target_link_libraries(ll::lualibs INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE}/liblua.a)
elseif (LINUX)
endif (WINDOWS)