X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=cli%2FCMakeLists.txt;h=939019b39aeebeed98e41948335fd6455d1de499;hb=175f5d675d1406dbbe08e60cfc71a347a6a37482;hp=5f8e116f5279e385ba1875ed659246bbf2c10d79;hpb=d7c738e13decf8a8a891008c51b437ccbe3434fb;p=apitrace diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index 5f8e116..939019b 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -24,6 +24,7 @@ add_executable (apitrace cli_trim.cpp cli_resources.cpp trace_analyzer.cpp + trim_callset.cpp ) target_link_libraries (apitrace @@ -33,4 +34,23 @@ 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 () + +if (MSVC) + # On MSVC builds tell which subdirectory the binaries with be (for each + # configuration) + set_target_properties (apitrace PROPERTIES + COMPILE_DEFINITIONS_DEBUG APITRACE_CONFIGURATION_SUBDIR="Debug" + COMPILE_DEFINITIONS_RELEASE APITRACE_CONFIGURATION_SUBDIR="Release" + COMPILE_DEFINITIONS_MINSIZEREL APITRACE_CONFIGURATION_SUBDIR="MinSizeRel" + COMPILE_DEFINITIONS_RELWITHDEBINFO APITRACE_CONFIGURATION_SUBDIR="RelWithDebInfo" + ) +endif () + + install (TARGETS apitrace RUNTIME DESTINATION bin)