X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=cli%2FCMakeLists.txt;h=e5ad36d990979e84e921bf9008d8b14d15489353;hb=c76fc373508945f419e56b3736f9fb2c8e088ad2;hp=a01d3aed11e72b0da42276c3552e8935b525787c;hpb=db3491e272f3754676673d52c89238e9cc43b7ad;p=apitrace diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index a01d3ae..e5ad36d 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -1,3 +1,14 @@ +# Expose the binary/install directories to source +# +# TODO: Use the same directory layout, for both build and install directories, +# so that binaries can find each other using just relative paths. +# +add_definitions( + -DAPITRACE_PROGRAMS_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/bin" + -DAPITRACE_SCRIPTS_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${SCRIPTS_INSTALL_DIR}" + -DAPITRACE_WRAPPERS_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${WRAPPER_INSTALL_DIR}" +) + add_executable (apitrace cli_main.cpp cli_diff.cpp