0% found this document useful (0 votes)
68 views1 page

CMake Lists

This document configures a CMake project called luauDec that builds an executable from C++ source files in a Decompiler directory. It enables testing, links to Luau libraries, and configures CPack for packaging.

Uploaded by

João Lucas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views1 page

CMake Lists

This document configures a CMake project called luauDec that builds an executable from C++ source files in a Decompiler directory. It enables testing, links to Luau libraries, and configures CPack for packaging.

Uploaded by

João Lucas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

cmake_minimum_required(VERSION 3.

20)
project(luauDec)
set(CMAKE_CXX_STANDARD 17)

add_executable(luauDec [Link] Decompiler/AstGen/src/[Link]


Decompiler/BlockGen/include/Lifter.h Decompiler/BlockGen/src/[Link]
Decompiler/Common.h Decompiler/BlockGen/src/[Link]
Decompiler/BlockGen/include/BlockGen.h Decompiler/AstGen/include/VirtualAstStack.h
Decompiler/AstGen/src/[Link] Decompiler/BlockGen/include/BodyHandler.h
Decompiler/BlockGen/src/[Link] Decompiler/AstGen/include/Generator.h
Decompiler/AstGen/src/[Link] Decompiler/AstGen/include/Handlers.h
Decompiler/AstGen/src/[Link] Decompiler/Decompile.h Decompiler/[Link])

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 [Link])
target_link_libraries(luauDec [Link])
target_link_libraries(luauDec [Link])
target_link_libraries(luauDec [Link])

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

You might also like