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
25 set(sigrok-qt2_HEADERS
37 set(sigrok-qt2_RESOURCES
41 set(QT_USE_QTOPENGL TRUE)
43 qt4_wrap_cpp(sigrok-qt2_HEADERS_MOC ${sigrok-qt2_HEADERS})
44 qt4_wrap_ui(sigrok-qt2_FORMS_HEADERS ${sigrok-qt2_FORMS})
45 qt4_add_resources(sigrok-qt2_RESOURCES_RCC ${sigrok-qt2_RESOURCES})
47 include(${QT_USE_FILE})
49 add_definitions(${QT_DEFINITIONS})
50 add_definitions(-DAPP_VERSION="${VERSION}")
53 ${include_directories}
55 ${PKGDEPS_INCLUDE_DIRS}
60 ${PKGDEPS_LIBRARY_DIRS}
63 add_executable(sigrok-qt2
65 ${sigrok-qt2_HEADERS_MOC}
66 ${sigrok-qt2_FORMS_HEADERS}
67 ${sigrok-qt2_RESOURCES_RCC}
70 target_link_libraries(sigrok-qt2