airborne/CMakeLists.txt
2023-12-30 23:21:14 +02:00

28 lines
723 B
CMake

cmake_minimum_required(VERSION 3.11)
project(airborne)
include(FetchContent)
if(NOT CMAKE_SYSTEM_NAME MATCHES Windows)
message(FATAL_ERROR "Use a cross compilation suitable toolchain with CMAKE_SYSTEM_NAME set to Windows")
endif()
if(NOT MSVC)
add_compile_options("-Wall" "-Wextra")
else()
# Level 4 warnings
add_compile_options("/W4" "/WX")
endif()
# *) Reflective loader (DLL)
add_library(reflective_loader SHARED reflective_loader/loader.c reflective_loader/loader.h)
# *) Payload (DLL)
add_library(payload SHARED payload/payload.c)
# *) Injector (EXE)
add_executable(injector injector/injector.c)
# *) Shellcode generator (EXE)
add_executable(shellcode_generator shellcode_generator/generator.c)