X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=cli%2FCMakeLists.txt;h=5f8e116f5279e385ba1875ed659246bbf2c10d79;hb=48c661ea6c0f2bd9b76a3385cd946b7d07bc9b5f;hp=a0ffb71e5d629bcadcfee97b27879f4becf5da0d;hpb=da96cbf5aa49ea70ea5516039c6997e9242a5be0;p=apitrace diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index a0ffb71..5f8e116 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 @@ -8,14 +19,15 @@ add_executable (apitrace cli_pager.cpp cli_pickle.cpp cli_repack.cpp - cli_replay.cpp + cli_retrace.cpp cli_trace.cpp cli_trim.cpp + cli_resources.cpp + trace_analyzer.cpp ) target_link_libraries (apitrace common - ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${SNAPPY_LIBRARIES} ${GETOPT_LIBRARIES}