Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

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

Download this file

CMakeLists.txt    34 lines (26 with data), 1.2 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
29
30
31
32
# Copyright (C) 2011 David Sugar, Haakon Eriksen, GNU Free Call Foundation
#
# 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.
#
file(GLOB qt_src *.cpp)
file(GLOB qt_inc program.h)
file(GLOB ui_src *.ui)
file(GLOB rc_src *.qrc)
# configure_file(application.rc.cmake ${CMAKE_CURRENT_SOURCE_DIR}/application.rc)
QT_WRAP_CPP(icons_moc icons.h)
QT_WRAP_UI(icons_ui icons.ui)
#if(WIN32)
# set(qt_qrc ${qt_qrc} application.rc)
#endif()
include_directories(${CMAKE_CURRENT_BINARY_DIR})
set (ICONS_PROGNAME coastal-icons)
add_executable(${ICONS_PROGNAME} WIN32 MACOSX_BUNDLE icons.cpp icons.h ${icons_moc} ${icons_ui})
target_link_libraries(${ICONS_PROGNAME} coastal ${QT_LIBRARIES} ${QT_PLUGINS})
add_dependencies(${ICONS_PROGNAME} coastal)
install(TARGETS ${ICONS_PROGNAME} DESTINATION ${INSTALL_BINDIR})