[1c9840]: system / CMakeLists.txt Maximize Restore History

Download this file

CMakeLists.txt    30 lines (26 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright (C) 2011 David Sugar, Tycho Softworks
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
if(UNIX AND NOT APPLE)
set(ICON_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../icons)
set(DESKTOP_PATH ${CMAKE_CURRENT_BINARY_DIR})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libcoastal.pc.cmake
${CMAKE_CURRENT_BINARY_DIR}/libcoastal.pc)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/coastal-manpager.desktop.cmake
${CMAKE_CURRENT_BINARY_DIR}/coastal-manpager.desktop)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/coastal-search.desktop.cmake
${CMAKE_CURRENT_BINARY_DIR}/coastal-search.desktop)
install(FILES ${ICON_PATH}/coastal-manpager.png DESTINATION ${INSTALL_DATADIR}/pixmaps)
install(FILES ${ICON_PATH}/coastal-search.png DESTINATION ${INSTALL_DATADIR}/pixmaps)
install(FILES ${ICON_PATH}/coastal-notify.png DESTINATION ${INSTALL_DATADIR}/pixmaps)
install(FILES ${DESKTOP_PATH}/coastal-manpager.desktop DESTINATION ${INSTALL_DATADIR}/applications)
install(FILES ${DESKTOP_PATH}/coastal-search.desktop DESTINATION ${INSTALL_DATADIR}/applications)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcoastal.pc DESTINATION ${INSTALL_LIBDIR}/pkgconfig)
endif()