[CMake] add my own language-name using standard functions

Kyle Edwards kyle.edwards at kitware.com
Fri Jul 19 16:41:16 EDT 2019


On Fri, 2019-07-19 at 21:30 +0100, hex wrote:
> dear community,
> I want to make a module for a language that is not supported by
> CMake. 
> are there any restrictions in using add_executable for any language
> other than C / C++, 
> must the build be constructed very similar to C language?
> I was looking into Java module for reference and noted that it is
> defining its own functions for build. Since overriding standard CMake
> functions is discouraged and add_executable seems to be hard coded
> (not a CMake module) I believe that I have to create my own functions
> like add_verilog_configuration, target_link_verilog_library and
> alike. 

All of the languages have different rules for building, linking, etc.
and many of these rules are encoded in native C++ rather than in CMake
script.

If you would like to add Verilog support to CMake, please open an issue
on GitLab so we can track the progress.

Kyle


More information about the CMake mailing list