X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=cli%2FCMakeLists.txt;h=689374dc5333ade934d45ea2a398e57d7182cec5;hb=ec8f5a61f393e75e4c3e3e22f84c773af66810e9;hp=e5ad36d990979e84e921bf9008d8b14d15489353;hpb=c76fc373508945f419e56b3736f9fb2c8e088ad2;p=apitrace diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index e5ad36d..689374d 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -23,6 +23,7 @@ add_executable (apitrace cli_trace.cpp cli_trim.cpp cli_resources.cpp + trace_analyzer.cpp ) target_link_libraries (apitrace @@ -32,4 +33,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)