diff options
author | Robert Carr <robert.carr@canonical.com> | 2014-09-18 09:37:42 -0700 |
---|---|---|
committer | Robert Carr <robert.carr@canonical.com> | 2014-09-18 09:37:42 -0700 |
commit | fe4a966a0a440b8f5901ee22023c6d911098c8f2 (patch) | |
tree | 350081fe852b9d604353f06765bda80dbf64658c | |
parent | b8441b17d75aa9698feb1bf0830d19464ee8dfec (diff) |
Add missing cmake file
-rw-r--r-- | cmake/modules/UseLttngGenTp.cmake | 24 | ||||
l--------- | src/modules/Unity/Application/.#CMakeLists.txt | 1 |
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 |