-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathCMakeLists.txt
25 lines (17 loc) · 863 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
cmake_minimum_required(VERSION 3.20.0)
# I know this is not a "best practice", but CallDispatcher requires Clang to be compiled because of the use of builtins, also,
# this only works for windows, and x64, so I dont see a problem on forcing some options.
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR AMD64)
set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)
#TODO: Generate errors on bad arch/SO
project(llvm-yx-callobfuscator LANGUAGES C CXX ASM_NASM VERSION 0.1.0)
find_package(LLVM REQUIRED CONFIG)
message(STATUS "Using install prefix ${CMAKE_INSTALL_PREFIX}")
message(STATUS "Using LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
add_subdirectory(CallObfuscatorPlugin)
add_subdirectory(CallObfuscatorHelpers)