~writer-devs/writer/trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Anthony Huben
  • Date: 2014-09-05 01:46:13 UTC
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: harp37@gmail.com-20140905014613-r5s0s8v662e4n4p4
Add initial support for cmake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
# Vala
22
22
find_package (Vala REQUIRED)
23
23
include (ValaVersion)
24
 
ensure_vala_version ("0.18" MINIMUM)
 
24
ensure_vala_version ("0.22" MINIMUM)
25
25
include (ValaPrecompile)
26
26
 
 
27
# Add 'make dist' command for creating release tarball
 
28
set (CPACK_PACKAGE_VERSION ${VERSION})
 
29
set (CPACK_SOURCE_GENERATOR "TGZ")
 
30
set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}")
 
31
set (CPACK_SOURCE_IGNORE_FILES "/build/;/.bzr/;/.bzrignore;~$;${CPACK_SOURCE_IGNORE_FILES}")
 
32
 
 
33
include (CPack)
 
34
add_custom_target (dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
 
35
 
27
36
# Definitions
28
37
add_definitions (-DGETTEXT_PACKAGE="writer")
29
38
 
41
50
vala_precompile(VALA_C
42
51
    src/Writer.vala
43
52
    src/MainWindow.vala
 
53
    src/Utils/Document.vala
 
54
    src/Utils/Editor.vala
 
55
    src/Utils/FileChooser.vala
 
56
    src/Utils/TextRange.vala
 
57
    src/Utils/ZeitgeistLogger.vala
 
58
    src/Widgets/ButtonGroup.vala
 
59
    src/Widgets/EditorToolBar.vala
 
60
    src/Widgets/EditorView.vala
 
61
    src/Widgets/ImageToolBar.vala
 
62
    src/Widgets/TableChooser.vala
 
63
    src/Widgets/TableToolBar.vala
44
64
    src/Widgets/TitleBar.vala
 
65
    src/Widgets/ToolBar.vala
45
66
    src/Widgets/WelcomeView.vala
46
67
    src/config.vala
47
68
PACKAGES
51
72
    --thread
52
73
)
53
74
 
 
75
add_subdirectory (data)
54
76
add_subdirectory (po)
55
77
 
56
78
add_executable(writer ${VALA_C})
59
81
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/writer.desktop DESTINATION share/applications)
60
82
IF (EXISTS (${CMAKE_CURRENT_SOURCE_DIR}/data/writer.svg))
61
83
    install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/writer.svg DESTINATION share/icons/hicolor/48x48/apps)
62
 
ENDIF ()
 
84
ENDIF ()
 
 
b'\\ No newline at end of file'