diff --git a/CMakeLists.txt b/CMakeLists.txt index 08e6dafaa1e0f71cec017be34922bf466e7b8956..dec3f948c07c17defc65ad0cc83c0fdb0f037816 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,7 @@ set(CMAKE_LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib) # only find static libraries if(STATIC_LINKING) - message(WARNING "static linking is not yet fully functional and will have linking errors") + message(WARNING "static linking is not yet tested and may have linking errors") if(WIN32) set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) else(WIN32) @@ -186,7 +186,6 @@ if (PHONON_FOUND) else() message(STATUS "\t\tPHONON\t\tNO") endif (PHONON_FOUND) -message(${PHONON_INCLUDE_DIR}) message(STATUS "=======================================") # project flags @@ -520,6 +519,9 @@ set (qgroundcontrolSrc src/ui/watchdog/WatchdogView.cc ) +# qgroundcontrol resource files +set(qgroundcontrolRscSrc mavground.qrc) + # qgroundcontrol linking qt4_wrap_cpp(qgroundcontrolMoc ${qgroundcontrolMocSrc}) qt4_wrap_ui(qgroundcontrolUi ${qgroundcontrolUiSrc}) diff --git a/CMakeModules/FindPhonon.cmake b/CMakeModules/FindPhonon.cmake index 28969c718c0e41df5ae9f7959f4b8f2d1f19c2f2..a89940488a361f9100827560957b1f9c1f530d4c 100644 --- a/CMakeModules/FindPhonon.cmake +++ b/CMakeModules/FindPhonon.cmake @@ -31,11 +31,11 @@ else(PHONON_FOUND) endif(PHONON_INCLUDE_DIR AND PHONON_LIBRARY) # As discussed on kde-buildsystem: first look at CMAKE_PREFIX_PATH, then at the suggested PATHS (kde4 install dir) - find_library(PHONON_LIBRARY NAMES phonon phonon4 PATHS ${KDE4_LIB_INSTALL_DIR} ${QT_LIBRARY_DIR} NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH) + find_library(PHONON_LIBRARY NAMES phonon phonon4 PATHS /usr/lib ${KDE4_LIB_INSTALL_DIR} ${QT_LIBRARY_DIR}) # then at the default system locations (CMAKE_SYSTEM_PREFIX_PATH, i.e. /usr etc.) find_library(PHONON_LIBRARY NAMES phonon phonon4) - find_path(PHONON_INCLUDE_DIR NAMES phonon/phonon_export.h PATHS ${KDE4_INCLUDE_INSTALL_DIR} ${QT_INCLUDE_DIR} ${INCLUDE_INSTALL_DIR} ${QT_LIBRARY_DIR} NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH) + find_path(PHONON_INCLUDE_DIR NAMES phonon/phonon_export.h PATHS /usr/include ${KDE4_INCLUDE_INSTALL_DIR} ${QT_INCLUDE_DIR} ${INCLUDE_INSTALL_DIR} ${QT_LIBRARY_DIR}) find_path(PHONON_INCLUDE_DIR NAMES phonon/phonon_export.h) if(PHONON_INCLUDE_DIR AND PHONON_LIBRARY)