~elementary-pantheon/contractor/master

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Cody Garver
  • Author(s): Matt Harris
  • Date: 2018-05-24 21:16:56 UTC
  • Revision ID: git-v1:fe6f23e1d24ba1b63c76e504af8e16bb31012c97
Switch to Meson (#25)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Vala stuff
2
 
find_package(Vala REQUIRED)
3
 
include(ValaVersion)
4
 
ensure_vala_version("0.16.0" MINIMUM)
5
 
include(ValaPrecompile)
6
 
 
7
 
set(EXEC_NAME ${CMAKE_PROJECT_NAME})
8
 
 
9
 
add_definitions(-DGETTEXT_PACKAGE=\"${CMAKE_PROJECT_NAME}\")
10
 
 
11
 
# pkgconfig, real C code
12
 
find_package(PkgConfig)
13
 
pkg_check_modules(DEPS REQUIRED gee-0.8 glib-2.0 gio-2.0 gio-unix-2.0)
14
 
 
15
 
set(CFLAGS ${DEPS_CFLAGS} ${DEPS_CFLAGS_OTHER})
16
 
set(LIB_PATHS ${DEPS_LIBRARY_DIRS})
17
 
 
18
 
link_directories(${LIB_PATHS})
19
 
add_definitions(${CFLAGS})
20
 
 
21
 
vala_precompile(VALA_C ${EXEC_NAME}
22
 
    main.vala
23
 
    Application.vala
24
 
    Contract.vala
25
 
    GenericContract.vala
26
 
    ContractFile.vala
27
 
    ContractKeyFile.vala
28
 
    MimeTypeManager.vala
29
 
    ContractMatcher.vala
30
 
    ContractSource.vala
31
 
    DBusService.vala
32
 
    ContractDirectory.vala
33
 
    FileService.vala
34
 
    FileEnumerator.vala
35
 
    ContractSorter.vala
36
 
    Translations.vala
37
 
    String.vala
38
 
PACKAGES
39
 
    gee-0.8
40
 
    glib-2.0
41
 
    gio-2.0
42
 
    gio-unix-2.0
43
 
)
44
 
 
45
 
add_executable(${EXEC_NAME} ${VALA_C})
46
 
target_link_libraries(${EXEC_NAME} ${DEPS_LIBRARIES})
47
 
install(TARGETS ${EXEC_NAME} RUNTIME DESTINATION bin)
48