-
Notifications
You must be signed in to change notification settings - Fork 12
/
vrjugglua-config-build-tree.cmake.in
53 lines (41 loc) · 1.56 KB
/
vrjugglua-config-build-tree.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
# CMake cross-platform build system
# 2009-2010 Ryan Pavlik <[email protected]>
# http://academic.cleardefinition.com/
# Iowa State University HCI Graduate Program/VRAC
set(VRJUGGLUA_LIBRARIES vrjlua_buildtree_vrjugglua)
set(VRJUGGLUA_FLTK_CONSOLE_LIBRARIES vrjlua_buildtree_vrjugglua-fltk)
set(VRJUGGLUA_QT_CONSOLE_LIBRARIES vrjlua_buildtree_vrjugglua-qt)
set(VRJUGGLUA_BASE_DIR "@CMAKE_CURRENT_BINARY_DIR@")
set(VRJUGGLUA_INCLUDE_DIRS
"@CMAKE_CURRENT_SOURCE_DIR@/third-party/lua-5.1.4/src"
"@CMAKE_CURRENT_SOURCE_DIR@/third-party/Fl_Native_File_Chooser-0.86"
"@CMAKE_CURRENT_SOURCE_DIR@/third-party/luabind"
"@OSGLUA_INCLUDE_DIRS@"
"@CMAKE_CURRENT_SOURCE_DIR@"
"@CMAKE_CURRENT_BINARY_DIR@")
set(VRJUGGLUA_VRJ30 @BUILD_WITH_VRJ30@)
if( (NOT BOOST_INCLUDEDIR)
AND (NOT BOOST_LIBRARYDIR)
AND (NOT BOOST_ROOT)
AND (NOT BOOSTROOT))
set(BOOST_LIBRARYDIR @Boost_LIBRARY_DIRS@)
set(BOOST_INCLUDEDIR @Boost_INCLUDE_DIR@)
endif()
function(install_vrjugglua_lua_files)
install(DIRECTORY "${VRJUGGLUA_BASE_DIR}/share/vrjugglua/"
DESTINATION "share/vrjugglua/"
${ARGN})
install(DIRECTORY "@CMAKE_CURRENT_SOURCE_DIR@/assets"
DESTINATION "share/vrjugglua/"
${ARGN})
endfunction()
include("@CMAKE_CURRENT_BINARY_DIR@/vrjugglua-targets.cmake")
set(_luac_target_file "@CMAKE_CURRENT_BINARY_DIR@/vrjugglua-luac-target.cmake")
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()
set(VRJUGGLUA_FOUND ON)