[Insight-users] Fwd: C++ Win32 DLL Application

Sam sistephan at gmail.com
Sat Nov 24 15:23:44 EST 2012


Ok, can I do this:

Create a blank .h/.cpp file.  Use CMAKE like this to create a Win 32 DLL
Application.  Then open the .sln file and add implementation details to my
.h/.cpp files and build it?

# This is the root ITK CMakeLists file.
cmake_minimum_required(VERSION 2.4)
if(COMMAND CMAKE_POLICY)
  cmake_policy(SET CMP0003 NEW)
endif(COMMAND CMAKE_POLICY)


# This project is designed to be built outside the Insight source tree.
project(MyITKProject)

# Find ITK.
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

#This includes my blank .h/.cpp file?
INCLUDE_DIRECTORIES(C:\MySourceDirectory)

add_library(MyITKProject SHARED)

target_link_libraries(HelloWorld ${ITK_LIBRARIES})



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/C-Win32-DLL-Application-tp7581733p7581739.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list