-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul Dreik
committed
Jan 26, 2025
1 parent
3ae7cfe
commit af25db5
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Makefile.in | |
aclocal* | ||
autom4te* | ||
config.h | ||
config.h.in | ||
./config.h.in | ||
config.log | ||
config.status | ||
configure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
cmake_minimum_required(VERSION 3.25) | ||
|
||
file(READ ../VERSION.txt RDFIND_VERSION) | ||
string(STRIP "${RDFIND_VERSION}" RDFIND_VERSION) | ||
|
||
string(REGEX REPLACE "\\.next$" ".999" PROJECT_VERSION ${RDFIND_VERSION}) | ||
project(rdfind VERSION "${PROJECT_VERSION}") | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(nettle REQUIRED nettle) | ||
|
||
configure_file(config.h.in config.h @ONLY) | ||
|
||
add_executable(rdfind | ||
../Checksum.cc | ||
../Checksum.hh | ||
../CmdlineParser.cc | ||
../CmdlineParser.hh | ||
../Dirlist.cc | ||
../Dirlist.hh | ||
../EasyRandom.cc | ||
../EasyRandom.hh | ||
../Fileinfo.cc | ||
../Fileinfo.hh | ||
../rdfind.cc | ||
../RdfindDebug.hh | ||
../Rdutil.cc | ||
../Rdutil.hh | ||
../UndoableUnlink.cc | ||
../UndoableUnlink.hh) | ||
target_include_directories(rdfind PRIVATE "${CMAKE_CURRENT_BINARY_DIR}") | ||
target_include_directories(rdfind PRIVATE ..) | ||
|
||
target_compile_features(rdfind PRIVATE cxx_std_17) | ||
target_link_libraries(rdfind nettle) | ||
target_compile_options(rdfind PRIVATE -Wall -Wextra -Wpedantic) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#cmakedefine RDFIND_VERSION "@RDFIND_VERSION@" | ||
#cmakedefine FOO_ENABLE | ||
#cmakedefine FOO_STRING "@FOO_STRING@" | ||
#define VERSION "@RDFIND_VERSION@" |