From fe4a256c05727f43c6c793b620b1638b88c830b3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 9 Oct 2010 15:04:16 +0200 Subject: Add advanced_event behaviour and use it for account events --- cmake/erlang | 1 + cmake/erlang/ErlangTarget.cmake | 35 ----------------------------------- cmake/erlang/FindErlang.cmake | 6 ------ 3 files changed, 1 insertion(+), 41 deletions(-) create mode 160000 cmake/erlang delete mode 100644 cmake/erlang/ErlangTarget.cmake delete mode 100644 cmake/erlang/FindErlang.cmake (limited to 'cmake/erlang') diff --git a/cmake/erlang b/cmake/erlang new file mode 160000 index 0000000..60f4725 --- /dev/null +++ b/cmake/erlang @@ -0,0 +1 @@ +Subproject commit 60f4725115653919e9179ad5f01359568e145047 diff --git a/cmake/erlang/ErlangTarget.cmake b/cmake/erlang/ErlangTarget.cmake deleted file mode 100644 index 2afbc7a..0000000 --- a/cmake/erlang/ErlangTarget.cmake +++ /dev/null @@ -1,35 +0,0 @@ -macro(erl_target name) - parse_arguments(ARGS "HEADERS;OPTIONS" "" ${ARGN}) - - set(headers "") - set(out_files "") - - foreach(header ${ARGS_HEADERS}) - list(APPEND headers "${CMAKE_CURRENT_SOURCE_DIR}/${header}") - endforeach(header ${ARGS_HEADERS}) - - foreach(src ${ARGS_DEFAULT_ARGS}) - set(in_file "${CMAKE_CURRENT_SOURCE_DIR}/${src}") - string(REPLACE ".erl" ".beam" src ${src}) - set(out_file "${CMAKE_CURRENT_BINARY_DIR}/${src}") - - add_custom_command( - OUTPUT - ${out_file} - COMMAND - ${ERLC_EXECUTABLE} - "-o" ${CMAKE_CURRENT_BINARY_DIR} - ${ARGS_OPTIONS} - ${in_file} - DEPENDS - ${in_file} - ${headers} - ) - - list(APPEND out_files "${CMAKE_CURRENT_BINARY_DIR}/${src}") - endforeach(src ${ARGS_DEFAULT_ARGS}) - - add_custom_target( - ${name} ALL DEPENDS ${out_files} - ) -endmacro(erl_target) diff --git a/cmake/erlang/FindErlang.cmake b/cmake/erlang/FindErlang.cmake deleted file mode 100644 index e7cb60f..0000000 --- a/cmake/erlang/FindErlang.cmake +++ /dev/null @@ -1,6 +0,0 @@ -find_program(ERLC_EXECUTABLE NAMES erlc) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Erlang DEFAULT_MSG ERLC_EXECUTABLE) -mark_as_advanced(ERLC_EXECUTABLE) - -- cgit v1.2.3