forked from xgladius/luauDec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (20 loc) · 1.26 KB
/
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
cmake_minimum_required(VERSION 3.20)
project(luauDec)
set(CMAKE_CXX_STANDARD 17)
add_executable(luauDec main.cpp Decompiler/AstGen/src/Common.cpp Decompiler/BlockGen/include/Lifter.h Decompiler/BlockGen/src/Lifter.cpp Decompiler/Common.h Decompiler/BlockGen/src/BlockGen.cpp Decompiler/BlockGen/include/BlockGen.h Decompiler/AstGen/include/VirtualAstStack.h Decompiler/AstGen/src/VirtualAstStack.cpp Decompiler/BlockGen/include/BodyHandler.h Decompiler/BlockGen/src/BodyHandler.cpp Decompiler/AstGen/include/Generator.h Decompiler/AstGen/src/Generator.cpp Decompiler/AstGen/include/Handlers.h Decompiler/AstGen/src/Handlers.cpp Decompiler/Decompile.h Decompiler/Decompile.cpp)
include(CTest)
enable_testing()
target_include_directories(luauDec PRIVATE include)
option(LUAU_BUILD_CLI "Build CLI" OFF)
option(LUAU_BUILD_TESTS "Build tests" OFF)
option(LUAU_BUILD_WEB "Build Web module" OFF)
option(LUAU_WERROR "Warnings as errors" OFF)
option(LUAU_STATIC_CRT "Link with the static CRT (/MT)" OFF)
add_subdirectory(luau)
target_link_libraries(luauDec Luau.Compiler)
target_link_libraries(luauDec Luau.Analysis)
target_link_libraries(luauDec Luau.VM)
target_link_libraries(luauDec Luau.Ast)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)