~elementary-pantheon/contractor/master

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Victor
  • Date: 2013-05-01 20:40:22 UTC
  • mto: This revision was merged to the branch mainline in revision 117.
  • Revision ID: git-v1:99d708225e3c84a32f833e38b34e5d5ef6271231
[CMake] Use new ValaPrecompile module to make compilations more efficient and fix a bug related to double-execution of valac.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
ensure_vala_version("0.16.0" MINIMUM)
5
5
include(ValaPrecompile)
6
6
 
 
7
set(EXEC_NAME "contractor")
7
8
set(GETTEXT_PACKAGE "contractor")
8
9
 
9
10
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
18
19
link_directories(${LIB_PATHS})
19
20
add_definitions(${CFLAGS})
20
21
 
21
 
vala_precompile(
22
 
VALA_C
 
22
vala_precompile(VALA_C ${EXEC_NAME}
23
23
    main.vala
24
24
    Application.vala
25
25
    Contract.vala
40
40
    gio-unix-2.0
41
41
)
42
42
 
43
 
add_executable(contractor ${VALA_C})
44
 
target_link_libraries(contractor ${DEPS_LIBRARIES})
45
 
install(TARGETS contractor RUNTIME DESTINATION bin)
 
43
add_executable(${EXEC_NAME} ${VALA_C})
 
44
target_link_libraries(${EXEC_NAME} ${DEPS_LIBRARIES})
 
45
install(TARGETS ${EXEC_NAME} RUNTIME DESTINATION bin)
46
46