[Insight-users] strange linking problem

barbababa tonimuusimaki at gmail.com
Fri Jun 14 09:44:08 EDT 2013



Hi!

i am only using cmakelists.txt file with cmake. That was just an example
that someone else is using the .pro
file. and that there is also that "l" issue. 

Anyways....

I changed the cmakelists.txt


PROJECT(DMITK)

SET(DMITK CMAKE_CXX_FLAGS_RELEASE)  # i want only release build. this does
not help though

 INCLUDE_DIRECTORIES( C:/ITK/build/lib/Release )
 INCLUDE_DIRECTORIES( C:/ProgramData/Gatan/DMSDK/lib/x64 )

find_package(ITK REQUIRED)
include(${ITK_USE_FILE})


ADD_LIBRARY(DMITK SHARED
.
.
.)


TARGET_LINK_LIBRARIES(DMITK ${ITK_LIBRARIES} DMPlugInBasic.lib
Foundation.lib )
LINK_LIBRARIES(${ITK_LIBRARIES} DMPlugInBasic.lib Foundation.lib)


And everything seems to be included.






--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/strange-linking-problem-tp7583295p7583314.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list