File: EttercapLuajit.cmake

package info (click to toggle)
ettercap 1:0.8.2-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,468 kB
  • ctags: 6,333
  • sloc: ansic: 47,337; yacc: 310; lex: 204; makefile: 121; xml: 31; sh: 24
file content (31 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Sets the variables:
#       LUAJIT_FOUND
#       LUAJIT_VERSION
#       LUAJIT_LIBRARY
#       LUAJIT_INCLUDE_DIR
# 
# Creates target:
#       luajit


ADD_CUSTOM_TARGET(luajit)

if(SYSTEM_LUAJIT)
  find_package(LUAJIT 2.0.0)

  if(NOT LUAJIT_FOUND)
    message(STATUS "Couldn't find a suitable system-provided version of LuaJIT")
  endif(NOT LUAJIT_FOUND)
endif(SYSTEM_LUAJIT)

# Only go into bundled stuff if it's enabled and we haven't found it already.
if(BUNDLED_LUAJIT AND (NOT LUAJIT_FOUND))
  message(STATUS "Using bundled version of LUAJIT")
  add_subdirectory(bundled_deps/luajit EXCLUDE_FROM_ALL)
  add_dependencies(luajit bundled_luajit)
  add_dependencies(bundled bundled_luajit)
endif(BUNDLED_LUAJIT AND (NOT LUAJIT_FOUND))

if(NOT LUAJIT_FOUND)
  message(FATAL_ERROR "Could not find LUAJIT!")
endif(NOT LUAJIT_FOUND)