The qt libraries are included in the target link flag (this project uses qt of course), however the two lib files that exist in the lib folder in the same directory are either not recognized. They draw up linker issues in the compiler, even though I can tell through the cmake gui that it does find those paths.
Any input at all would be great. Below I have included the CMakeLists.txt, a screenshot of the cmake gui as well as a sample of the linking errors being drawn. PROJECT(CppSampleQt01) FIND_PACKAGE(Qt4 REQUIRED) //These are the lines I am concerned do not function appropriately. However you can http://i.imgur.com/EDrHR.png see here that they are recognized by CMake FIND_LIBRARY(SIMPLONLIB lv.simplon lib) FIND_LIBRARY(SIMPLONIMGPROC lv.simplon.imgproc lib) SET(CppSampleQt01_SOURCES include/lv.simplon.class.cpp camera.cpp main.cpp mainwindow.cpp osdep.cpp paint.cpp) SET(CppSampleQt01_HEADERS include/lv.simplon.class.h camera.h mainwindow.h osdep.h paint.h) SET(CppSampleQt01_RESOURCES icons.qrc) INCLUDE(${QT_USE_FILE}) ADD_DEFINITIONS(${QT_DEFINITIONS}) ADD_EXECUTABLE(CppSampleQt01 ${CppSampleQt01_SOURCES} ${CppSampleQt01_HEADERS_MOC} ${CppSampleQt01_RESOURCES_RCC}) TARGET_LINK_LIBRARIES(CppSampleQt01 ${QT_LIBRARIES}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} include QExtSerialPort/src) And here are some of the relevant linker errors that are drawn: 2>lv.simplon.class.obj : error LNK2019: unresolved external symbol __imp__LvEventKill@4 referenced in function "public: unsigned int __thiscall LvEvent::Kill(void)" (?Kill@LvEvent@@QAEIXZ) 2>lv.simplon.class.obj : error LNK2019: unresolved external symbol __imp__LvEventFlush@4 referenced in function "public: unsigned int __thiscall LvEvent::Flush(void)" (?Flush@LvEvent@@QAEIXZ)....... -- View this message in context: http://cmake.3232098.n2.nabble.com/Why-are-my-static-libs-not-being-read-tp7581042.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
