]> git.cworth.org Git - apitrace/blobdiff - cli/CMakeLists.txt
trim: Use custom skiplist for required list (instead of std::set<unsigned>)
[apitrace] / cli / CMakeLists.txt
index 689374dc5333ade934d45ea2a398e57d7182cec5..939019b39aeebeed98e41948335fd6455d1de499 100644 (file)
@@ -24,6 +24,7 @@ add_executable (apitrace
     cli_trim.cpp
     cli_resources.cpp
     trace_analyzer.cpp
+    trim_callset.cpp
 )
 
 target_link_libraries (apitrace
@@ -40,4 +41,16 @@ if (NOT CMAKE_CROSSCOMPILING)
     )
 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)