[Insight-users] Fwd: C++ Win32 DLL Application
Sam
sistephan at gmail.com
Sat Nov 24 16:02:59 EST 2012
This is my new CMAKELists file (starting with INCLUDE_DIRECTORIES).
It creates two projects one that is a DLL and one that is an executable.
The solution builds successfully. However, when I add a call to the
constructor of my Test.h class in HelloWorld.cxx, I get a link error during
build.
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-tp7581733p7581741.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list