From 30588653813298efbf329cb542cf03bf78320380 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Fri, 12 Oct 2012 23:51:14 +0100 Subject: [PATCH] Added section headers to CMakeLists.txt --- CMakeLists.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07c2d4b..3adb967 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ ## This file is part of the PulseView project. ## ## Copyright (C) 2012 Joel Holdsworth +## Copyright (C) 2012 Alexandru Gagniuc ## ## 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 @@ -22,6 +23,10 @@ include(FindPkgConfig) project(pulseview) +#=============================================================================== +#= Dependencies +#------------------------------------------------------------------------------- + find_package(PkgConfig) pkg_check_modules(PKGDEPS REQUIRED libsigrokdecode>=0.1.0 @@ -38,6 +43,10 @@ find_package(Boost 1.46 COMPONENTS unit_test_framework REQUIRED) set(VERSION 0.1.0) +#=============================================================================== +#= Sources +#------------------------------------------------------------------------------- + set(pulseview_SOURCES main.cpp pv/about.cpp @@ -88,9 +97,17 @@ qt4_add_resources(pulseview_RESOURCES_RCC ${pulseview_RESOURCES}) 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( @@ -108,6 +125,10 @@ else(WIN32) ) endif(WIN32) +#=============================================================================== +#= Linker Configuration +#------------------------------------------------------------------------------- + # On Windows/MinGW we need PKGDEPS_STATIC_LIBRARY_DIRS. if(WIN32) link_directories( @@ -143,8 +164,16 @@ else(WIN32) ) endif(WIN32) +#=============================================================================== +#= Installation +#------------------------------------------------------------------------------- + install(PROGRAMS pulseview DESTINATION bin/) +#=============================================================================== +#= Tests +#------------------------------------------------------------------------------- + if(ENABLE_TESTS) add_definitions(-DBOOST_TEST_DYN_LINK) -- 2.30.2