X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=cli%2FCMakeLists.txt;h=5f8e116f5279e385ba1875ed659246bbf2c10d79;hb=e8fbc5deea39f8eac43cf5f1a6033f97e0484297;hp=af99f57aaa06c3ad17caca0822a7be31dd31304d;hpb=2ae3c962d308ceb866f7478866cdcc85f50a987d;p=apitrace diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index af99f57..5f8e116 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -1,17 +1,35 @@ +# 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 cli_diff_state.cpp cli_diff_images.cpp cli_dump.cpp + cli_dump_images.cpp cli_pager.cpp cli_pickle.cpp cli_repack.cpp + cli_retrace.cpp cli_trace.cpp cli_trim.cpp + cli_resources.cpp + trace_analyzer.cpp ) target_link_libraries (apitrace + common + ${ZLIB_LIBRARIES} + ${SNAPPY_LIBRARIES} ${GETOPT_LIBRARIES} )