diff options
author | Chad Elliott <elliottc@objectcomputing.com> | 2022-10-12 12:09:14 -0500 |
---|---|---|
committer | Chad Elliott <elliottc@objectcomputing.com> | 2022-10-12 12:09:14 -0500 |
commit | fbd413bd8c9832a06fe6e99983b9b2aef48e7cd8 (patch) | |
tree | b5d4c4949d97300b838d26d49f016bc6bb5e3ca2 /modules/CMakeProjectCreator.pm | |
parent | 52a01101184c9ae210bce15a3e93b58002eb1135 (diff) | |
download | MPC-fbd413bd8c9832a06fe6e99983b9b2aef48e7cd8.tar.gz |
Added configurable build configurations and used combined_custom to simplify generated CMakeLists.txt files.
Diffstat (limited to 'modules/CMakeProjectCreator.pm')
-rw-r--r-- | modules/CMakeProjectCreator.pm | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/modules/CMakeProjectCreator.pm b/modules/CMakeProjectCreator.pm index a9bdeec2..86f99743 100644 --- a/modules/CMakeProjectCreator.pm +++ b/modules/CMakeProjectCreator.pm @@ -18,13 +18,6 @@ use vars qw(@ISA); @ISA = qw(ProjectCreator); # ************************************************************ -# Data Section -# ************************************************************ - -## NOTE: We call the constant as a function to support Perl 5.6. -my %info = (Creator::cplusplus() => {'template' => 'cmake'}); - -# ************************************************************ # Subroutine Section # ************************************************************ @@ -61,6 +54,11 @@ sub need_to_write_project { return $status; } +sub pre_write_output_file { + my $self = shift; + return $self->combine_custom_types(); +} + sub dollar_special { return 1; } @@ -69,17 +67,17 @@ sub project_file_prefix { return "CMakeLists."; } -sub languageSupported { - return defined $info{$_[0]->get_language()}; -} - sub escape_spaces { #my $self = shift; return 1; } -sub get_template { - return $info{$_[0]->get_language()}->{'template'}; +sub get_dll_exe_template_input_file { + return 'cmakeexe'; +} + +sub get_dll_template_input_file { + return 'cmakedll'; } sub fill_value { |