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

Dženan Zukić dzenanz at gmail.com
Wed Oct 19 09:29:59 EDT 2016


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20161019/62ff824c/attachment.html>
-------------- next part --------------
_____________________________________
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 Community mailing list