diff options
Diffstat (limited to 'cmake')
m--------- | cmake/erlang | 0 | ||||
-rw-r--r-- | cmake/erlang/ErlangTarget.cmake | 35 | ||||
-rw-r--r-- | cmake/erlang/FindErlang.cmake | 6 |
3 files changed, 0 insertions, 41 deletions
diff --git a/cmake/erlang b/cmake/erlang new file mode 160000 +Subproject 60f4725115653919e9179ad5f01359568e14504 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) - |