~cjwatson/ubuntu-app-launch/libclick-pkgdir

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Colin Watson
  • Date: 2014-03-07 12:33:01 UTC
  • Revision ID: cjwatson@canonical.com-20140307123301-n77q87wtlzxjhif6
Use libclick to get the package directory, saving about 0.7 seconds from Click application startup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
pkg_check_modules(ZEITGEIST REQUIRED zeitgeist-2.0)
53
53
include_directories(${ZEITGEIST_INCLUDE_DIRS})
54
54
 
 
55
pkg_check_modules(CLICK REQUIRED click-0.4)
 
56
include_directories(${CLICK_INCLUDE_DIRS})
 
57
 
55
58
pkg_check_modules(LIBUPSTART REQUIRED libupstart)
56
59
include_directories(${LIBUPSTART_INCLUDE_DIRS})
57
60
 
92
95
add_lttng_gen_tp(NAME click-exec-trace)
93
96
add_executable(click-exec click-exec.c click-exec-trace.c)
94
97
set_target_properties(click-exec PROPERTIES OUTPUT_NAME "click-exec")
95
 
target_link_libraries(click-exec helpers ${LTTNG_LIBRARIES})
 
98
target_link_libraries(click-exec helpers ${LTTNG_LIBRARIES} ${CLICK_LIBRARIES})
96
99
install(TARGETS click-exec RUNTIME DESTINATION "${pkglibexecdir}")
97
100
 
98
101
####################
101
104
 
102
105
add_executable(desktop-hook desktop-hook.c)
103
106
set_target_properties(desktop-hook PROPERTIES OUTPUT_NAME "desktop-hook")
104
 
target_link_libraries(desktop-hook helpers)
 
107
target_link_libraries(desktop-hook helpers ${CLICK_LIBRARIES})
105
108
install(TARGETS desktop-hook RUNTIME DESTINATION "${pkglibexecdir}")
106
109
 
107
110
####################