forked from vancegroup/vr-jugglua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vrjugglua-config.cmake.in
62 lines (50 loc) · 1.94 KB
/
vrjugglua-config.cmake.in
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# CMake cross-platform build system
# 2009-2010 Ryan Pavlik <[email protected]>
# http://academic.cleardefinition.com/
# Iowa State University HCI Graduate Program/VRAC
if(NOT TARGET vrjlua_exported_vrjugglua)
set(VRJUGGLUA_LIBRARIES vrjlua_exported_vrjugglua)
set(VRJUGGLUA_FLTK_CONSOLE_LIBRARIES vrjlua_exported_vrjugglua-fltk)
set(VRJUGGLUA_QT_CONSOLE_LIBRARIES vrjlua_exported_vrjugglua-qt)
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(_luac_target_file "${_IMPORT_PREFIX}/vrjlua-luac-target.cmake")
include("${_IMPORT_PREFIX}/vrjlua-targets.cmake")
# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(NOT WIN32)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
endif()
set(VRJUGGLUA_VRJ30 @BUILD_WITH_VRJ30@)
set(VRJUGGLUA_BASE_DIR "${_IMPORT_PREFIX}")
set(VRJUGGLUA_INCLUDE_DIRS "${_IMPORT_PREFIX}/include")
set(_IMPORT_PREFIX)
if( (NOT BOOST_INCLUDEDIR)
AND (NOT BOOST_LIBRARYDIR)
AND (NOT BOOST_ROOT)
AND (NOT BOOSTROOT))
# Try to help in case we're installed alongside Boost
#set(BOOST_ROOT "${_IMPORT_PREFIX}")
endif()
list(APPEND CMAKE_PREFIX_PATH "${_IMPORT_PREFIX}")
set(VRJUGGLERRUNTIME_BUNDLE @VRJUGGLERRUNTIME_BUNDLE@)
function(install_vrjugglua_lua_files)
install(DIRECTORY "${VRJUGGLUA_BASE_DIR}/share/vrjugglua/"
DESTINATION "share/vrjugglua/"
${ARGN})
endfunction()
if((NOT TARGET luac) AND (EXISTS "${_luac_target_file}"))
include("${_luac_target_file}")
endif()
set(BUILD_LUA_AS_CPP @BUILD_LUA_AS_CPP@)
if(BUILD_LUA_AS_CPP)
list(APPEND VRJUGGLUA_DEFINITIONS -DLUABIND_CPLUSPLUS_LUA)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(VRJuggLua
DEFAULT_MSG
VRJUGGLUA_LIBRARIES
VRJUGGLUA_FLTK_CONSOLE_LIBRARIES
VRJUGGLUA_INCLUDE_DIRS
VRJUGGLUA_BASE_DIR)
endif()