Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- project( cl02johnsonhj )
- cmake_minimum_required(VERSION 2.8)
- find_package ( ITK REQUIRED )
- include( ${USE_ITK_FILE} )
- add_executable( IteratorTests IteratorTests.cxx )
- target_link_libraries( IteratorTests ${ITK_LIBRARIES} )
- add_executable( IteratorTests IteratorTests.cxx )
- add_executable( IteratorTests IteratorTests.cxx tinyxml2.cpp )
- # This is the root ITK CMakeLists file.
- cmake_minimum_required(VERSION 2.8)
- # This project is designed to be built outside the Insight source tree.
- project(bme186_vsomashekar_Project)
- # Find ITK.
- find_package(ITK REQUIRED)
- include(${ITK_USE_FILE})
- set (TINYXML2_SRC tinyxml2.cpp tinyxml2.h)
- add_library(XML_LIB ${TINYXML2_SRC})
- add_executable(projectMain.exe projectMain.cxx )
- target_link_libraries(projectMain.exe ${ITK_LIBRARIES} ${XML_LIB})
- make
- Scanning dependencies of target XML_LIB
- [ 50%] Building CXX object CMakeFiles/XML_LIB.dir/tinyxml2.cpp.o
- Linking CXX static library libXML_LIB.a
- [ 50%] Built target XML_LIB
- Scanning dependencies of target projectMain.exe
- [100%] Building CXX object CMakeFiles/projectMain.exe.dir/projectMain.cxx.o
- Linking CXX executable projectMain.exe
- Undefined symbols for architecture x86_64:
- "tinyxml2::XMLDocument::LoadFile(char const*)", referenced from:
- _main in projectMain.cxx.o
- "tinyxml2::XMLDocument::XMLDocument(bool, tinyxml2::Whitespace)", referenced from:
- _main in projectMain.cxx.o
- "tinyxml2::XMLDocument::~XMLDocument()", referenced from:
- _main in projectMain.cxx.o
- ld: symbol(s) not found for architecture x86_64
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- make[2]: *** [projectMain.exe] Error 1
- make[1]: *** [CMakeFiles/projectMain.exe.dir/all] Error 2
- make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement