Blame dwarfgen/CMakeLists.txt
|
Packit |
cdaae3 |
include(configure.cmake)
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
set_source_group(SOURCES "Source Files" createirepformfrombinary.cc createirepfrombinary.cc dwarfgen.cc irepattrtodbg.cc ireptodbg.cc
|
|
Packit |
cdaae3 |
../libdwarf/dwgetopt.c)
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
set_source_group(HEADERS "Header Files" createirepfrombinary.h general.h irepattrtodbg.h irepdie.h irepframe.h irepform.h
|
|
Packit |
cdaae3 |
irepmacro.h irepresentation.h ireptodbg.h strtabdata.h ../libdwarf/dwgetopt.h)
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
set_source_group(CONFIGURATION_FILES "Configuration Files" configure.cmake config.h.in.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
add_executable(dwarfgen ${SOURCES} ${HEADERS} ${CONFIGURATION_FILES})
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
set_folder(dwarfgen dwarfgen)
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
target_link_libraries(dwarfgen PRIVATE ${dwarf-target} ${dwfzlib})
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
set(SUFFIX $<$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>:64>)
|
|
Packit |
cdaae3 |
set(LIBDIR lib${SUFFIX})
|
|
Packit |
cdaae3 |
set(BINDIR bin${SUFFIX})
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
install(TARGETS dwarfgen DESTINATION
|
|
Packit |
cdaae3 |
RUNTIME DESTINATION ${BINDIR}
|
|
Packit |
cdaae3 |
LIBRARY DESTINATION ${LIBDIR}
|
|
Packit |
cdaae3 |
ARCHIVE DESTINATION ${LIBDIR})
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
#install(FILES dwarfgen.conf DESTINATION lib)
|
|
Packit |
cdaae3 |
|
|
Packit |
cdaae3 |
install(FILES dwarfgen.1 DESTINATION share/man/man1)
|