[CMake] CMakeLists file to Create Matlab Mex file
Brad King
brad.king at kitware.com
Tue May 31 09:05:31 EDT 2005
Craig Davis wrote:
> Has anyone out there ever successfully created a CMakeLists file that
> successfully creates a Matalab Mex (dll) file for Microsoft Visual
> Studio? I want to create a Mex file that uses ITK but can't figure out
> how to make the CMakeLists file. HELP!!!!
This should get you started:
PROJECT(MYMEX)
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})
ADD_LIBRARY(mymex MODULE mymex.cxx)
TARGET_LINK_LIBRARIES(mymex ITKCommon)
Of course you will need to change the names and may need to link to more
than ITKCommon but this it the basic structure you need.
-Brad
More information about the CMake
mailing list