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

Sam sistephan at gmail.com
Sun Nov 25 13:08:28 EST 2012


Is this CMAKE file correct if I want to create two projects? One being a DLL
and the other being an .exe that will reference the DLL.

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) 

add_library(MyITKProject SHARED Test.h Test.cpp) 

target_link_libraries(MyITKProject ${ITK_LIBRARIES}) 

add_executable(HelloWorld HelloWorld.cxx ) 

target_link_libraries(HelloWorld ${ITK_LIBRARIES} MyITKProject) 




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


More information about the Insight-users mailing list