diff options
Diffstat (limited to 'libs/elf')
| -rw-r--r-- | libs/elf/CMakeLists.txt | 30 | ||||
| -rw-r--r-- | libs/elf/elf/format.hpp (renamed from libs/elf/include/elf/format.hpp) | 0 | ||||
| -rw-r--r-- | libs/elf/elf/section_header.hpp (renamed from libs/elf/include/elf/section_header.hpp) | 2 |
3 files changed, 25 insertions, 7 deletions
diff --git a/libs/elf/CMakeLists.txt b/libs/elf/CMakeLists.txt index 66e59ee..1841132 100644 --- a/libs/elf/CMakeLists.txt +++ b/libs/elf/CMakeLists.txt @@ -1,17 +1,35 @@ +cmake_minimum_required(VERSION "3.27.0") + +project("elf" + DESCRIPTION "ELF file format library" + VERSION "0.0.1" + LANGUAGES CXX +) + +include("CTest") + +#[============================================================================[ +# Library +#]============================================================================] + add_library("elf" INTERFACE) -add_library("libs::elf" ALIAS "elf") +add_library("elf::lib" ALIAS "elf") + +file(GLOB_RECURSE ELF_HEADERS + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + CONFIGURE_DEPENDS + "elf/**.hpp" +) target_sources("elf" INTERFACE FILE_SET HEADERS - BASE_DIRS "include" + BASE_DIRS "elf" FILES - "include/elf/format.hpp" - "include/elf/section_header.hpp" - + ${ELF_HEADERS} ) target_include_directories("elf" INTERFACE - "include" + "${CMAKE_CURRENT_SOURCE_DIR}" ) set_target_properties("elf" PROPERTIES diff --git a/libs/elf/include/elf/format.hpp b/libs/elf/elf/format.hpp index bc85101..bc85101 100644 --- a/libs/elf/include/elf/format.hpp +++ b/libs/elf/elf/format.hpp diff --git a/libs/elf/include/elf/section_header.hpp b/libs/elf/elf/section_header.hpp index 2b907cb..b1305ec 100644 --- a/libs/elf/include/elf/section_header.hpp +++ b/libs/elf/elf/section_header.hpp @@ -1,7 +1,7 @@ #ifndef ELF_SECTION_HEADER_HPP #define ELF_SECTION_HEADER_HPP -#include "format.hpp" +#include <elf/format.hpp> #include <cstddef> #include <cstdint> |
