20 ## User settable options |
20 ## User settable options |
21 |
21 |
22 ## Check for build dependencies |
22 ## Check for build dependencies |
23 find_package(PkgConfig REQUIRED) |
23 find_package(PkgConfig REQUIRED) |
24 pkg_check_modules(GLIB REQUIRED glib-2.0) |
24 pkg_check_modules(GLIB REQUIRED glib-2.0) |
25 pkg_check_modules(GMODULE REQUIRED gmodule-2.0) |
|
26 pkg_check_modules(MCABBER REQUIRED mcabber) |
25 pkg_check_modules(MCABBER REQUIRED mcabber) |
27 link_directories(${GLIB_LIBRARY_DIRS} |
26 link_directories(${GLIB_LIBRARY_DIRS} |
28 ${GMODULE_LIBRARY_DIRS} |
|
29 ${MCABBER_LIBRARY_DIRS}) |
27 ${MCABBER_LIBRARY_DIRS}) |
30 |
28 |
31 ## Target definitions |
29 ## Target definitions |
32 add_library(env MODULE env.c) |
30 add_library(env MODULE env.c) |
33 |
31 |
34 ## Compiler setup |
32 ## Compiler setup |
35 include_directories(SYSTEM ${GLIB_INCLUDE_DIRS} |
33 include_directories(SYSTEM ${GLIB_INCLUDE_DIRS} |
36 ${GMODULE_INCLUDE_DIRS} |
|
37 ${MCABBER_INCLUDE_DIRS}) |
34 ${MCABBER_INCLUDE_DIRS}) |
38 target_link_libraries(env ${GLIB_LIBRARIES} |
35 target_link_libraries(env ${GLIB_LIBRARIES} |
39 ${GMODULE_LIBRARIES} |
|
40 ${MCABBER_LIBRARIES}) |
36 ${MCABBER_LIBRARIES}) |
41 include_directories(${env_SOURCE_DIR} |
37 include_directories(${env_SOURCE_DIR} |
42 ${env_BINARY_DIR}) |
38 ${env_BINARY_DIR}) |
43 |
39 |
44 ## Packaging information |
40 ## Packaging information |