blob: e351990cb69b3d721165355ef164c449fa8b3a77 (
plain)
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
|
set (LUABRIDGE_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/List.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/LuaBridge.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/Map.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/RefCountedObject.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/RefCountedPtr.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/UnorderedMap.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/Vector.h
)
source_group ("LuaBridge" FILES ${LUABRIDGE_HEADERS})
set (LUABRIDGE_DETAIL_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/CFunctions.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/ClassInfo.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/Config.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/Constructor.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/dump.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/FuncTraits.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/Iterator.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/LuaException.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/LuaHelpers.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/LuaRef.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/Namespace.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/Stack.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/TypeList.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/TypeTraits.h
${CMAKE_CURRENT_SOURCE_DIR}/LuaBridge/detail/Userdata.h
)
source_group ("LuaBridge\\detail" FILES ${LUABRIDGE_DETAIL_HEADERS})
add_library (LuaBridge INTERFACE)
target_sources (LuaBridge INTERFACE
${LUABRIDGE_HEADERS}
${LUABRIDGE_DETAIL_HEADERS}
)
target_include_directories (LuaBridge INTERFACE .)
if (MSVC)
add_custom_target (LuaBridgeLibrary SOURCES
${LUABRIDGE_HEADERS}
${LUABRIDGE_DETAIL_HEADERS}
)
endif ()
|