[ITK-users] [ITK] Cmake clrsupport c# wrapper for itk

Matt McCormick matt.mccormick at kitware.com
Wed Oct 19 09:45:33 EDT 2016


Hi Swetha,

There is improved C# support in the "csharp" branch of this repository:

  https://github.com/micst/CMake

they are working on upstreaming the improvements. You may want to try
it out and prove feedback on the CMake mailing lists.

HTH,
Matt

On Wed, Oct 19, 2016 at 9:29 AM, Dženan Zukić <dzenanz at gmail.com> wrote:
> Hi Swetha,
>
> this sounds more like a question for CMake mailing list. Can you try
> searching if it was already answered or posting it there?
>
> Regards,
> Dženan
>
> On Wed, Oct 19, 2016 at 5:49 AM, swetha <swetha.bsharma at gmail.com> wrote:
>>
>> Hi,
>>
>>    I am trying to create a wrapper in c# for c++ code in itk. Because I am
>> using ITK i am forced to use cmake to add the relevant header files which
>> i
>> would need.
>>
>> This is the script which i have added
>>
>> SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/clr")
>>  STRING(REPLACE "/EHsc" "/EHa" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
>>  STRING(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
>>  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /clr")
>>
>> The problem I've found, is that while CMake sets the "Common Language
>> RunTime Support" option in the C/C++ section of the configuration
>> properties
>> if "/clr" is in the CXX_FLAGS, it does not set the "Common Language
>> RunTime
>> Support" in the general configuration properties, and that causes problems
>> with linking/.NET references.
>>
>> How do i solve this?
>> -swetha
>>
>>
>>
>> --
>> View this message in context:
>> http://itk-insight-users.2283740.n2.nabble.com/Cmake-clrsupport-c-wrapper-for-itk-tp7589372.html
>> Sent from the ITK Insight Users mailing list archive at Nabble.com.
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/insight-users
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list