X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=cli%2FCMakeLists.txt;h=3165f7da662abf4bf8007f50ea474f8d3bb626de;hb=166e4c0065829d26b2d0272335f983162d9ab4df;hp=e5ad36d990979e84e921bf9008d8b14d15489353;hpb=4f74cc67dd2b46d2abc0be5663c992410420091b;p=apitrace diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index e5ad36d..3165f7d 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -23,6 +23,8 @@ add_executable (apitrace cli_trace.cpp cli_trim.cpp cli_resources.cpp + trace_analyzer.cpp + trim_callset.cpp ) target_link_libraries (apitrace @@ -32,4 +34,11 @@ target_link_libraries (apitrace ${GETOPT_LIBRARIES} ) +if (NOT CMAKE_CROSSCOMPILING) + set_target_properties (apitrace PROPERTIES + # On debug builds tell where the source is so that scripts can be found + COMPILE_DEFINITIONS_DEBUG APITRACE_SOURCE_DIR="${CMAKE_SOURCE_DIR}" + ) +endif () + install (TARGETS apitrace RUNTIME DESTINATION bin)