Files
Mergen/cmake.toml
T
naci 58fa2c79ac fix condition
if you cant tell, im a bit sleep deprived
2025-04-24 06:23:55 +03:00

47 lines
992 B
TOML

[cmake]
version = "3.16"
cmkr-include = "cmake/cmkr.cmake;"
[project]
name = "Mergen"
[conditions]
windows = "WIN32"
testmode = "DEFINED MERGEN_TEST"
[variables]
CMAKE_MODULE_PATH = "${CMAKE_CURRENT_SOURCE_DIR}/cmake"
CMAKE_CXX_FLAGS_DEBUG = "-O0 -gfull"
[fetch-content.linux-pe]
git = "https://github.com/can1357/linux-pe"
tag = "be6d1f6"
[find-package.Iced-Wrapper]
[fetch-content.Zydis]
condition = "ICED_NOT_FOUND"
git = "https://github.com/zyantific/zydis"
tag = "v4.1.0"
[fetch-content.magic_enum]
git = "https://github.com/Neargye/magic_enum"
tag = "a413fcc"
[find-package.LLVM-Wrapper]
[target.lifter]
type = "executable"
sources = ["lifter/*.cpp"]
headers = ["lifter/*.h", "lifter/*.hpp", "lifter/*.ipp"]
link-libraries = ["LLVM-Wrapper", "linux-pe", "magic_enum"]
ICED_NOT_FOUND.link-libraries = ["Zydis"]
ICED_FOUND.link-libraries = ["Iced_Wrapper"]
windows.link-libraries = ["Ws2_32"]
compile-features = ["cxx_std_20"]
testmode.compile-definitions = ["MERGEN_TEST"]