heload, a mess

This commit is contained in:
2025-03-16 17:45:09 +02:00
parent 5d362d4237
commit fb763cdf64
12 changed files with 622 additions and 111 deletions

View File

@@ -3,12 +3,19 @@ project(Heload)
# I just like to have this with my tooling
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD 11)
# heload library
# ##############
add_library(heload SHARED
src/heload.c
src/symbols.c
)
set_property(TARGET heload PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(heload dl)
# Specify the public headers location
target_include_directories(heload PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> # During build
@@ -32,3 +39,17 @@ install(EXPORT heloadTargets
)
export(TARGETS heload FILE heloadConfig.cmake)
# auditor libraries
# ###############
add_library(auditor-x86_64 SHARED
src/auditor/auditor-x86_64.c
)
install(TARGETS auditor-x86_64
EXPORT auditor-x86_64Targets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)