2
find_package(Vala REQUIRED)
4
ensure_vala_version("0.16.0" MINIMUM)
5
include(ValaPrecompile)
7
set(EXEC_NAME ${CMAKE_PROJECT_NAME})
9
add_definitions(-DGETTEXT_PACKAGE=\"${CMAKE_PROJECT_NAME}\")
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)
15
set(CFLAGS ${DEPS_CFLAGS} ${DEPS_CFLAGS_OTHER})
16
set(LIB_PATHS ${DEPS_LIBRARY_DIRS})
18
link_directories(${LIB_PATHS})
19
add_definitions(${CFLAGS})
21
vala_precompile(VALA_C ${EXEC_NAME}
32
ContractDirectory.vala
45
add_executable(${EXEC_NAME} ${VALA_C})
46
target_link_libraries(${EXEC_NAME} ${DEPS_LIBRARIES})
47
install(TARGETS ${EXEC_NAME} RUNTIME DESTINATION bin)