[ITK] [ITK-users] Cmake clrsupport c# wrapper for itk
swetha
swetha.bsharma at gmail.com
Wed Oct 19 05:49:55 EDT 2016
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
More information about the Community
mailing list