File tree Expand file tree Collapse file tree 3 files changed +20
-17
lines changed Expand file tree Collapse file tree 3 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,12 @@ cmake_minimum_required(VERSION 3.5)
22
33project (patchelf)
44
5- include (GNUInstallDirs)
6-
7- set (CMAKE_CXX_STANDARD 17)
8- set (CMAKE_CXX_EXTENSIONS OFF )
9-
10- set (PAGESIZE 4096)
11-
12- set (ADDITIONAL_HEADERS src/elf.h)
13-
14- set (SOURCES src/patchelf.cc)
15-
165file (READ version VERSION )
176
18- add_executable (${PROJECT_NAME} ${SOURCES} ${ADDITIONAL_HEADERS} )
19-
20- target_compile_definitions (
21- patchelf PRIVATE PAGESIZE=${PAGESIZE}
22- PACKAGE_STRING="patchelf ${VERSION_STRING} " )
7+ include (GNUInstallDirs)
238
24- install (TARGETS patchelf RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
9+ add_subdirectory (src)
10+ # add_subdirectory(tests) # TODO
2511
2612install (FILES patchelf.1 DESTINATION ${CMAKE_INSTALL_MANDIR} /man1)
2713
Original file line number Diff line number Diff line change 3939 ( lib . fileset . difference ./src (
4040 lib . fileset . unions [
4141 ./src/Makefile.am
42+ ./src/CMakeLists.txt
4243 ./src/meson.build
4344 ]
4445 ) )
4546 ( lib . fileset . difference ./tests (
4647 lib . fileset . unions [
4748 ./tests/Makefile.am
49+ #./tests/CMakeLists.txt
4850 #./tests/meson.build
4951 ]
5052 ) )
6163
6264 cmakeSrcFiles = [
6365 ./CMakeLists.txt
66+ ./src/CMakeLists.txt
67+ #./tests/CMakeLists.txt
6468 ] ;
6569
6670 mesonSrcFiles = [
6771 ./meson.build
6872 ./meson.options
6973 ./src/meson.build
74+ #./tests/meson.build
7075 ] ;
7176
7277 autotoolsSrc = lib . fileset . toSource {
Original file line number Diff line number Diff line change 1+ set (CMAKE_CXX_STANDARD 17)
2+ set (CMAKE_CXX_EXTENSIONS OFF )
3+
4+ set (PAGESIZE 4096)
5+
6+ add_executable (${PROJECT_NAME} patchelf.cc elf.h patchelf.h)
7+
8+ target_compile_definitions (
9+ patchelf PRIVATE PAGESIZE=${PAGESIZE}
10+ PACKAGE_STRING="patchelf ${VERSION_STRING} " )
11+
12+ install (TARGETS patchelf RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
You can’t perform that action at this time.
0 commit comments