Added cmake files to build elfio

* Build all the examples in the project
This commit is contained in:
Michael Uman 2020-08-18 20:12:01 -07:00 committed by Serge Lamikhov-Center
parent d255a35259
commit 5974123dc7
7 changed files with 29 additions and 0 deletions

6
CMakeLists.txt Normal file
View File

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.17.3)
project(elfio)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory(examples)

8
examples/CMakeLists.txt Normal file
View File

@ -0,0 +1,8 @@
add_subdirectory(anonymizer)
add_subdirectory(elfdump)
#add_subdirectory(RelocationTable)
add_subdirectory(tutorial)
add_subdirectory(write_obj)
add_subdirectory(writer)

View File

@ -0,0 +1,3 @@
add_executable(anonymizer anonymizer.cpp)
include_directories(SYSTEM ${CMAKE_SOURCE_DIR})

View File

@ -0,0 +1,3 @@
add_executable(elfdump elfdump.cpp)
include_directories(SYSTEM ${CMAKE_SOURCE_DIR})

View File

@ -0,0 +1,3 @@
add_executable(tutorial tutorial.cpp)
include_directories(SYSTEM ${CMAKE_SOURCE_DIR})

View File

@ -0,0 +1,3 @@
add_executable(write_obj write_obj.cpp)
include_directories(SYSTEM ${CMAKE_SOURCE_DIR})

View File

@ -0,0 +1,3 @@
add_executable(writer writer.cpp)
include_directories(SYSTEM ${CMAKE_SOURCE_DIR})