From a86eaed3dbbd278ff3c6ebc8c29172d3c0d116b3 Mon Sep 17 00:00:00 2001 From: hobbes1069 Date: Mon, 6 May 2013 15:49:31 +0000 Subject: [PATCH] Add cmake configuration for contrib dir. git-svn-id: https://svn.code.sf.net/p/freetel/code@1239 01035d8c-6547-0410-b346-abe4f91aad63 --- fdmdv2/CMakeLists.txt | 2 +- fdmdv2/contrib/CMakeLists.txt | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 fdmdv2/contrib/CMakeLists.txt diff --git a/fdmdv2/CMakeLists.txt b/fdmdv2/CMakeLists.txt index 32929c4c..5b59e3e4 100644 --- a/fdmdv2/CMakeLists.txt +++ b/fdmdv2/CMakeLists.txt @@ -37,7 +37,7 @@ message(STATUS "FreeDV version: ${FREEDV_VERSION}") #set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) # Work around for not using a svn working copy. -add_definitions(-DSVN_REVISION="1238") +add_definitions(-DSVN_REVISION="1239") # Set default build flags. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") diff --git a/fdmdv2/contrib/CMakeLists.txt b/fdmdv2/contrib/CMakeLists.txt new file mode 100644 index 00000000..3f4b7e02 --- /dev/null +++ b/fdmdv2/contrib/CMakeLists.txt @@ -0,0 +1,22 @@ +# Install icons if we're on most *nix systems. +if(UNIX AND NOT APPLE) + set(ICON_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor + CACHE PATH "Prefix to use for installing icons.") + install(FILES freedv48x48.png + DESTINATION ${ICON_INSTALL_PREFIX}/48x48/apps + RENAME freedv.png) + install(FILES freedv64x64.png + DESTINATION ${ICON_INSTALL_PREFIX}/64x64/apps + RENAME freedv.png) + install(FILES freedv128x128.png + DESTINATION ${ICON_INSTALL_PREFIX}/128x128/apps + RENAME freedv.png) + install(FILES freedv256x256.png + DESTINATION ${ICON_INSTALL_PREFIX}/256x256/apps + RENAME freedv.png) + + set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/applications + CACHE PATH "Location to install desktop files.") + install(FILES freedv.desktop + DESTINATION ${DESKTOP_INSTALL_DIR}) +endif(UNIX AND NOT APPLE) -- 2.25.1