Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. project( cl02johnsonhj )
  2. cmake_minimum_required(VERSION 2.8)
  3.  
  4. find_package ( ITK REQUIRED )
  5. include( ${USE_ITK_FILE} )
  6.  
  7. add_executable( IteratorTests IteratorTests.cxx )
  8.  
  9. target_link_libraries( IteratorTests ${ITK_LIBRARIES} )
  10.  
  11. add_executable( IteratorTests IteratorTests.cxx )
  12.  
  13. add_executable( IteratorTests IteratorTests.cxx tinyxml2.cpp )
  14.  
  15. # This is the root ITK CMakeLists file.
  16. cmake_minimum_required(VERSION 2.8)
  17. # This project is designed to be built outside the Insight source tree.
  18. project(bme186_vsomashekar_Project)
  19. # Find ITK.
  20. find_package(ITK REQUIRED)
  21. include(${ITK_USE_FILE})
  22. set (TINYXML2_SRC tinyxml2.cpp tinyxml2.h)
  23. add_library(XML_LIB ${TINYXML2_SRC})
  24. add_executable(projectMain.exe projectMain.cxx )
  25. target_link_libraries(projectMain.exe ${ITK_LIBRARIES} ${XML_LIB})
  26.  
  27. make
  28. Scanning dependencies of target XML_LIB
  29. [ 50%] Building CXX object CMakeFiles/XML_LIB.dir/tinyxml2.cpp.o
  30. Linking CXX static library libXML_LIB.a
  31. [ 50%] Built target XML_LIB
  32. Scanning dependencies of target projectMain.exe
  33. [100%] Building CXX object CMakeFiles/projectMain.exe.dir/projectMain.cxx.o
  34. Linking CXX executable projectMain.exe
  35. Undefined symbols for architecture x86_64:
  36. "tinyxml2::XMLDocument::LoadFile(char const*)", referenced from:
  37. _main in projectMain.cxx.o
  38. "tinyxml2::XMLDocument::XMLDocument(bool, tinyxml2::Whitespace)", referenced from:
  39. _main in projectMain.cxx.o
  40. "tinyxml2::XMLDocument::~XMLDocument()", referenced from:
  41. _main in projectMain.cxx.o
  42. ld: symbol(s) not found for architecture x86_64
  43. clang: error: linker command failed with exit code 1 (use -v to see invocation)
  44. make[2]: *** [projectMain.exe] Error 1
  45. make[1]: *** [CMakeFiles/projectMain.exe.dir/all] Error 2
  46. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement