1 cmake_minimum_required(VERSION 2.6)
6 find_package(PkgConfig)
7 pkg_check_modules(PKGDEPS REQUIRED
12 find_package(Qt4 REQUIRED)
13 find_package(Boost 1.46 REQUIRED)
17 set(sigrok-qt2_SOURCES
31 set(sigrok-qt2_HEADERS
43 set(sigrok-qt2_RESOURCES
47 set(QT_USE_QTOPENGL TRUE)
49 qt4_wrap_cpp(sigrok-qt2_HEADERS_MOC ${sigrok-qt2_HEADERS})
50 qt4_wrap_ui(sigrok-qt2_FORMS_HEADERS ${sigrok-qt2_FORMS})
51 qt4_add_resources(sigrok-qt2_RESOURCES_RCC ${sigrok-qt2_RESOURCES})
53 include(${QT_USE_FILE})
55 add_definitions(${QT_DEFINITIONS})
56 add_definitions(-DAPP_VERSION="${VERSION}")
59 ${include_directories}
61 ${PKGDEPS_INCLUDE_DIRS}
66 ${PKGDEPS_LIBRARY_DIRS}
69 add_executable(sigrok-qt2
71 ${sigrok-qt2_HEADERS_MOC}
72 ${sigrok-qt2_FORMS_HEADERS}
73 ${sigrok-qt2_RESOURCES_RCC}
76 target_link_libraries(sigrok-qt2