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(LM REQUIRED loudmouth-1.0) |
25 pkg_check_modules(LM REQUIRED loudmouth-1.0) |
27 pkg_check_modules(MCABBER REQUIRED mcabber) |
26 pkg_check_modules(MCABBER REQUIRED mcabber) |
28 link_directories(${GLIB_LIBRARY_DIRS} |
27 link_directories(${GLIB_LIBRARY_DIRS} |
29 ${GMODULE_LIBRARY_DIRS} |
|
30 ${LM_LIBRARY_DIRS} |
28 ${LM_LIBRARY_DIRS} |
31 ${MCABBER_LIBRARY_DIRS}) |
29 ${MCABBER_LIBRARY_DIRS}) |
32 |
30 |
33 ## Target definitions |
31 ## Target definitions |
34 add_library(pep MODULE pep.c) |
32 add_library(pep MODULE pep.c) |
35 |
33 |
36 ## Compiler setup |
34 ## Compiler setup |
37 include_directories(SYSTEM ${GLIB_INCLUDE_DIRS} |
35 include_directories(SYSTEM ${GLIB_INCLUDE_DIRS} |
38 ${GMODULE_INCLUDE_DIRS} |
|
39 ${LM_INCLUDE_DIRS} |
36 ${LM_INCLUDE_DIRS} |
40 ${MCABBER_INCLUDE_DIRS}) |
37 ${MCABBER_INCLUDE_DIRS}) |
41 target_link_libraries(pep ${GLIB_LIBRARIES} |
38 target_link_libraries(pep ${GLIB_LIBRARIES} |
42 ${GMODULE_LIBRARIES} |
|
43 ${LM_LIBRARIES} |
39 ${LM_LIBRARIES} |
44 ${MCABBER_LIBRARIES}) |
40 ${MCABBER_LIBRARIES}) |
45 include_directories(${pep_SOURCE_DIR} |
41 include_directories(${pep_SOURCE_DIR} |
46 ${pep_BINARY_DIR}) |
42 ${pep_BINARY_DIR}) |
47 |
43 |