<div><div dir="auto">Also, I would not suggest using the Java language support as reference as it is not a first class supported language. As you said, it defines custom functions and macros to do everything.</div></div><div dir="auto"><br></div><div dir="auto">I would suggest you look at the C# support as it is a first class language (meaning: you can add it to your project statement along with C and CXX or use enable language). It is only supported for the Visual Studio Generator but it should give you a lot better starting point than the Java stuff.</div><div dir="auto"><br></div><div dir="auto">-Caleb</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 19, 2019 at 4:43 PM Kyle Edwards <<a href="mailto:kyle.edwards@kitware.com">kyle.edwards@kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 2019-07-19 at 21:30 +0100, hex wrote:<br>
> dear community,<br>
> I want to make a module for a language that is not supported by<br>
> CMake. <br>
> are there any restrictions in using add_executable for any language<br>
> other than C / C++, <br>
> must the build be constructed very similar to C language?<br>
> I was looking into Java module for reference and noted that it is<br>
> defining its own functions for build. Since overriding standard CMake<br>
> functions is discouraged and add_executable seems to be hard coded<br>
> (not a CMake module) I believe that I have to create my own functions<br>
> like add_verilog_configuration, target_link_verilog_library and<br>
> alike. <br>
<br>
All of the languages have different rules for building, linking, etc.<br>
and many of these rules are encoded in native C++ rather than in CMake<br>
script.<br>
<br>
If you would like to add Verilog support to CMake, please open an issue<br>
on GitLab so we can track the progress.<br>
<br>
Kyle<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Sent from my iPhone SE</div>