Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

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

Download this file

CMakeLists.txt    48 lines (37 with data), 1.5 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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.
#
file(GLOB qt_src *.cpp)
file(GLOB qt_inc *.h)
file(GLOB ui_src *.ui)
file(GLOB rc_src *.qrc)
if( APPLE )
set(PROGNAME "Coastal Manpager")
else()
set(PROGNAME coastal-manpager)
endif()
set (ts_manpager ${ts_common} ${qt_src} ${ui_src} ${qt_inc} PARENT_SCOPE)
configure_file(application.rc.cmake ${CMAKE_CURRENT_SOURCE_DIR}/application.rc)
QT_ADD_RESOURCES(qt_qrc ${rc_src})
QT_WRAP_CPP(qt_moc program.h)
QT_WRAP_UI(qt_ui ${ui_src})
if(WIN32)
set(qt_qrc ${qt_qrc} application.rc)
endif()
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(${PROGNAME} WIN32 MACOSX_BUNDLE ${qt_src} ${qt_inc} ${qt_moc} ${qt_qrc} ${qt_ui})
target_link_libraries(${PROGNAME} coastal ${QT_LIBRARIES} ${QT_PLUGINS})
add_dependencies(${PROGNAME} coastal)
install(TARGETS ${PROGNAME} DESTINATION ${INSTALL_BINDIR})
if(APPLE)
set(MANPAGER_RESOURCES ${CMAKE_CURRENT_BINARY_DIR}/${PROGNAME}.app/Contents/Resources)
add_custom_command(TARGET ${PROGNAME} POST_BUILD
COMMAND mkdir ARGS ${MANPAGER_RESOURCES})
endif()