diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-10-09 15:04:16 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-10-09 15:04:16 +0200 |
commit | fe4a256c05727f43c6c793b620b1638b88c830b3 (patch) | |
tree | b37076f8fa9f1817ceae99989d2878a58c944ef8 /cmake | |
parent | e6d184833a8c46d3ecd3a407c66c561bb0d47123 (diff) | |
download | ephraim-fe4a256c05727f43c6c793b620b1638b88c830b3.tar ephraim-fe4a256c05727f43c6c793b620b1638b88c830b3.zip |
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) - |