forked from svarog2741/xrluafix
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
50 lines (43 loc) · 866 Bytes
/
CMakeLists.txt
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
add_library(xrLuaFix STATIC)
target_sources(xrLuaFix PRIVATE
LibMath.cpp
LibMath.h
LibStr.cpp
LibStr.h
LibTab.cpp
LibTab.h
Logger.cpp
Logger.h
pch.cpp
pch.hpp
xrLuaFix.cpp
xrLuaFix.h
lfs/src/lfs.c
lfs/src/lfs.h
lua-marshal/lmarshal.c
lua-pack/lua_pack.c
)
target_include_directories(xrLuaFix
PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}"
PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/lfs/src"
"${CMAKE_SOURCE_DIR}/src"
)
target_link_libraries(xrLuaFix
PRIVATE
xrCore
)
if (XRAY_USE_LUAJIT)
target_link_libraries(xrLuaFix PUBLIC xrLuaJIT)
else()
target_link_libraries(xrLuaFix PUBLIC Lua51)
endif()
target_precompile_headers(xrLuaFix
PRIVATE
$<$<COMPILE_LANGUAGE:CXX>:pch.hpp>
)
set_target_properties(xrLuaFix PROPERTIES
PREFIX ""
POSITION_INDEPENDENT_CODE ON
)