summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/modules/UseLttngGenTp.cmake24
l---------src/modules/Unity/Application/.#CMakeLists.txt1
2 files changed, 24 insertions, 1 deletions
diff --git a/cmake/modules/UseLttngGenTp.cmake b/cmake/modules/UseLttngGenTp.cmake
new file mode 100644
index 0000000..5184a2e
--- /dev/null
+++ b/cmake/modules/UseLttngGenTp.cmake
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 2.6)
+if(POLICY CMP0011)
+ cmake_policy(SET CMP0011 NEW)
+endif(POLICY CMP0011)
+
+find_program(LTTNG_GEN_TP NAMES lttng-gen-tp DOC "lttng-gen-tp executable")
+if(NOT LTTNG_GEN_TP)
+ message(FATAL_ERROR "Excutable lttng-gen-top not found")
+endif()
+
+function(add_lttng_gen_tp)
+ set(_one_value NAME)
+ cmake_parse_arguments (arg "" "${_one_value}" "" ${ARGN})
+
+ add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.h" "${CMAKE_CURRENT_BINARY_DIR}/${arg_NAME}.c"
+ COMMAND "${LTTNG_GEN_TP}"
+ -o "${arg_NAME}.h"
+ -o "${arg_NAME}.c"
+ "${CMAKE_CURRENT_SOURCE_DIR}/${arg_NAME}.tp"
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+ DEPENDS "${arg_NAME}.tp"
+ )
+endfunction(add_lttng_gen_tp) \ No newline at end of file
diff --git a/src/modules/Unity/Application/.#CMakeLists.txt b/src/modules/Unity/Application/.#CMakeLists.txt
deleted file mode 120000
index 4629b9b..0000000
--- a/src/modules/Unity/Application/.#CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-racarr@stella-blue.14184:1411013201 \ No newline at end of file