27 lines
677 B
CMake
27 lines
677 B
CMake
add_executable(voidlink
|
|
main.cpp
|
|
writer.cpp
|
|
reader.cpp
|
|
builder.cpp
|
|
elf_reader.cpp
|
|
coff_reader.cpp
|
|
macho_reader.cpp
|
|
reloc_lowering.cpp
|
|
merge.cpp
|
|
symlib_table.cpp
|
|
# Synthesis: produce native blobs at pack time so ldd/file work on .vlc
|
|
${CMAKE_SOURCE_DIR}/loader/common/elf_synth.cpp
|
|
${CMAKE_SOURCE_DIR}/loader/windows/pe_synth.cpp
|
|
${CMAKE_SOURCE_DIR}/loader/macos/macho_synth.cpp
|
|
)
|
|
|
|
target_link_libraries(voidlink PRIVATE voidlibc_format)
|
|
target_include_directories(voidlink PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}
|
|
)
|
|
install(TARGETS voidlink
|
|
EXPORT VoidLibCTargets
|
|
RUNTIME DESTINATION bin
|
|
)
|