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

Download this file

48 lines (38 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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)
if( APPLE )
set (PROGNAME "Coastal Search")
else()
set (PROGNAME coastal-search)
endif()
set (ts_search ${ts_common} ${qt_src} ${ui_src} ${qt_inc} PARENT_SCOPE)
set (ts_out ../translations/coastal-search.ts)
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} ${qm_out})
target_link_libraries(${PROGNAME} coastal ${QT_LIBRARIES} ${QT_PLUGINS})
add_dependencies(${PROGNAME} coastal)
install(TARGETS ${PROGNAME} DESTINATION ${INSTALL_BINDIR})
if(APPLE)
set(SEARCH_RESOURCES ${CMAKE_CURRENT_BINARY_DIR}/${PROGNAME}.app/Contents/Resources)
add_custom_command(TARGET ${PROGNAME} POST_BUILD
COMMAND mkdir ARGS ${SEARCH_RESOURCES})
endif()

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks