## This file is part of the PulseView project.
##
## Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
+## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
project(pulseview)
+#===============================================================================
+#= Dependencies
+#-------------------------------------------------------------------------------
+
find_package(PkgConfig)
pkg_check_modules(PKGDEPS REQUIRED
libsigrokdecode>=0.1.0
set(VERSION 0.1.0)
+#===============================================================================
+#= Sources
+#-------------------------------------------------------------------------------
+
set(pulseview_SOURCES
main.cpp
pv/about.cpp
include(${QT_USE_FILE})
+#===============================================================================
+#= Global Definitions
+#-------------------------------------------------------------------------------
+
add_definitions(${QT_DEFINITIONS})
add_definitions(-DAPP_VERSION="${VERSION}")
+#===============================================================================
+#= Global Include Directories
+#-------------------------------------------------------------------------------
+
# On Windows/MinGW we need PKGDEPS_STATIC_INCLUDE_DIRS.
if(WIN32)
include_directories(
)
endif(WIN32)
+#===============================================================================
+#= Linker Configuration
+#-------------------------------------------------------------------------------
+
# On Windows/MinGW we need PKGDEPS_STATIC_LIBRARY_DIRS.
if(WIN32)
link_directories(
)
endif(WIN32)
+#===============================================================================
+#= Installation
+#-------------------------------------------------------------------------------
+
install(PROGRAMS pulseview DESTINATION bin/)
+#===============================================================================
+#= Tests
+#-------------------------------------------------------------------------------
+
if(ENABLE_TESTS)
add_definitions(-DBOOST_TEST_DYN_LINK)