equal
deleted
inserted
replaced
14 # You should have received a copy of the GNU General Public License |
14 # You should have received a copy of the GNU General Public License |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 |
16 |
17 cmake_minimum_required(VERSION 2.6) |
17 cmake_minimum_required(VERSION 2.6) |
18 project(pep C) |
18 project(pep C) |
|
19 set(PROJECT_VERSION "0.0.1") |
19 |
20 |
20 ## User settable options |
21 ## User settable options |
21 |
22 |
22 ## Check for build dependencies |
23 ## Check for build dependencies |
23 find_package(PkgConfig REQUIRED) |
24 find_package(PkgConfig REQUIRED) |
30 |
31 |
31 ## Target definitions |
32 ## Target definitions |
32 add_library(pep MODULE pep.c) |
33 add_library(pep MODULE pep.c) |
33 |
34 |
34 ## Compiler setup |
35 ## Compiler setup |
|
36 configure_file(config.h.in config.h) |
35 include_directories(SYSTEM ${GLIB_INCLUDE_DIRS} |
37 include_directories(SYSTEM ${GLIB_INCLUDE_DIRS} |
36 ${LM_INCLUDE_DIRS} |
38 ${LM_INCLUDE_DIRS} |
37 ${MCABBER_INCLUDE_DIRS}) |
39 ${MCABBER_INCLUDE_DIRS}) |
38 target_link_libraries(pep ${GLIB_LIBRARIES} |
40 target_link_libraries(pep ${GLIB_LIBRARIES} |
39 ${LM_LIBRARIES} |
41 ${LM_LIBRARIES} |
41 include_directories(${pep_SOURCE_DIR} |
43 include_directories(${pep_SOURCE_DIR} |
42 ${pep_BINARY_DIR}) |
44 ${pep_BINARY_DIR}) |
43 |
45 |
44 ## Packaging information |
46 ## Packaging information |
45 set(CPACK_PACKAGE_NAME libmcabber-pep) |
47 set(CPACK_PACKAGE_NAME libmcabber-pep) |
46 set(CPACK_PACKAGE_VERSION "0.0.1") |
48 set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) |
47 set(CPACK_PACKAGE_VENDOR "IsBear") |
49 set(CPACK_PACKAGE_VENDOR "IsBear") |
48 set(CPACK_PACKAGE_CONTACT "Myhailo Danylenko <isbear@ukrpost.net>") |
50 set(CPACK_PACKAGE_CONTACT "Myhailo Danylenko <isbear@ukrpost.net>") |
49 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Common PEP listener module") |
51 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Common PEP listener module") |
50 set(CPACK_RESOURCE_FILE_LICENSE ${pep_SOURCE_DIR}/COPYING) |
52 set(CPACK_RESOURCE_FILE_LICENSE ${pep_SOURCE_DIR}/COPYING) |
51 set(CPACK_SOURCE_GENERATOR TBZ2) |
53 set(CPACK_SOURCE_GENERATOR TBZ2) |