]> git.cworth.org Git - apitrace/blob - cli/CMakeLists.txt
Extend profiling tool to support Vsize and Rss memory usage profile per call
[apitrace] / cli / CMakeLists.txt
1 # Expose the binary/install directories to source
2 #
3 # TODO: Use the same directory layout, for both build and install directories,
4 # so that binaries can find each other using just relative paths.
5 #
6 add_definitions(
7     -DAPITRACE_PROGRAMS_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/bin"
8     -DAPITRACE_SCRIPTS_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${SCRIPTS_INSTALL_DIR}"
9     -DAPITRACE_WRAPPERS_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${WRAPPER_INSTALL_DIR}"
10 )
11
12 add_executable (apitrace
13     cli_main.cpp
14     cli_diff.cpp
15     cli_diff_state.cpp
16     cli_diff_images.cpp
17     cli_dump.cpp
18     cli_dump_images.cpp
19     cli_pager.cpp
20     cli_pickle.cpp
21     cli_repack.cpp
22     cli_retrace.cpp
23     cli_trace.cpp
24     cli_trim.cpp
25     cli_resources.cpp
26     trace_analyzer.cpp
27 )
28
29 target_link_libraries (apitrace
30     common
31     ${ZLIB_LIBRARIES}
32     ${SNAPPY_LIBRARIES}
33     ${GETOPT_LIBRARIES}
34 )
35
36 install (TARGETS apitrace RUNTIME DESTINATION bin)