Skip to content

Commit

Permalink
Rename add_dotnet_project to add_dotnet_executable_project; Add add_d…
Browse files Browse the repository at this point in the history
…otnet_library_project
  • Loading branch information
hoffmann-stefan committed Apr 23, 2023
1 parent 1e2998b commit f784e1e
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions cmake/Modules/FindDotNETExtra.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,25 @@ function(add_dotnet_test _TARGET_NAME)

endfunction()

function(add_dotnet_project _TARGET_NAME)
cmake_parse_arguments(_add_dotnet_project
function(add_dotnet_library_project _TARGET_NAME)
cmake_parse_arguments(_add_dotnet_library_project
""
""
"PROJ;INCLUDE_DLLS"
${ARGN}
)

csharp_add_existing_project(${_TARGET_NAME}
PROJ
${_add_dotnet_library_project_PROJ}
${_add_dotnet_library_project_UNPARSED_ARGUMENTS}
INCLUDE_DLLS
${_add_dotnet_library_project_INCLUDE_DLLS}
)
endfunction()

function(add_dotnet_executable_project _TARGET_NAME)
cmake_parse_arguments(_add_dotnet_executable_project
""
""
"PROJ;INCLUDE_DLLS"
Expand All @@ -118,10 +135,10 @@ function(add_dotnet_project _TARGET_NAME)
csharp_add_existing_project(${_TARGET_NAME}
EXECUTABLE
PROJ
${_add_dotnet_project_PROJ}
${_add_dotnet_project_UNPARSED_ARGUMENTS}
${_add_dotnet_executable_project_PROJ}
${_add_dotnet_executable_project_UNPARSED_ARGUMENTS}
INCLUDE_DLLS
${_add_dotnet_project_INCLUDE_DLLS}
${_add_dotnet_executable_project_INCLUDE_DLLS}
)
endfunction()

Expand Down

0 comments on commit f784e1e

Please sign in to comment.