bzr branch
http://darksoft.org/webbzr/alps/ufodecode
4
by Matthias Vogelgesang
Make ipedec a lib and executable |
1 |
cmake_minimum_required(VERSION 2.8) |
9
by Matthias Vogelgesang
Rename to `ufodecode` |
2 |
set(TARNAME "libufodecode") |
4
by Matthias Vogelgesang
Make ipedec a lib and executable |
3 |
|
34
by Matthias Vogelgesang
Use two-digit so-version |
4 |
set(LIBUFODECODE_API_VERSION "0.2") |
5 |
set(LIBUFODECODE_ABI_VERSION "0.2") |
|
9
by Matthias Vogelgesang
Rename to `ufodecode` |
6 |
set(LIBUFODECODE_ABI_MAJOR_VERSION "0") |
4
by Matthias Vogelgesang
Make ipedec a lib and executable |
7 |
|
39.1.9
by Matthias Vogelgesang
Bump version to 0.2.2 |
8 |
set(PACKAGE_VERSION "0.2.2") |
4
by Matthias Vogelgesang
Make ipedec a lib and executable |
9 |
set(PACKAGE_NAME "${TARNAME}") |
10 |
set(PACKAGE_TARNAME "${TARNAME}") |
|
36
by Matthias Vogelgesang
Add INSTALL and README |
11 |
set(PACKAGE_STRING "${PACKAGE_NAME}-${PACKAGE_VERSION}") |
4
by Matthias Vogelgesang
Make ipedec a lib and executable |
12 |
set(PACKAGE_BUGREPORT "http://ufo.kit.edu/ufo/newticket") |
13 |
||
36
by Matthias Vogelgesang
Add INSTALL and README |
14 |
set(CPACK_SOURCE_GENERATOR "TGZ") |
15 |
set(CPACK_SOURCE_IGNORE_FILES ".git" "tags" ".bzr" ".swp") |
|
16 |
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${PACKAGE_STRING} CACHE INTERNAL "tarball basename") |
|
17 |
||
4
by Matthias Vogelgesang
Make ipedec a lib and executable |
18 |
if(NOT DEFINED BIN_INSTALL_DIR) |
19 |
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin") |
|
20 |
endif(NOT DEFINED BIN_INSTALL_DIR) |
|
21 |
||
22 |
if(NOT DEFINED LIB_INSTALL_DIR) |
|
23 |
set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib") |
|
24 |
endif(NOT DEFINED LIB_INSTALL_DIR) |
|
25 |
||
26 |
if(NOT DEFINED INCLUDE_INSTALL_DIR) |
|
39.1.11
by Matthias Vogelgesang
Remove package name from install path |
27 |
set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include") |
4
by Matthias Vogelgesang
Make ipedec a lib and executable |
28 |
endif(NOT DEFINED INCLUDE_INSTALL_DIR) |
29 |
||
30 |
if(NOT DEFINED LOCALE_INSTALL_DIR) |
|
31 |
set(LOCALE_INSTALL_DIR "${DATA_INSTALL_DIR}/locale/") |
|
32 |
endif(NOT DEFINED LOCALE_INSTALL_DIR) |
|
33 |
||
9
by Matthias Vogelgesang
Rename to `ufodecode` |
34 |
configure_file(ufodecode.pc.in ${CMAKE_CURRENT_BINARY_DIR}/ufodecode.pc) |
4
by Matthias Vogelgesang
Make ipedec a lib and executable |
35 |
install(FILES |
9
by Matthias Vogelgesang
Rename to `ufodecode` |
36 |
${CMAKE_CURRENT_BINARY_DIR}/ufodecode.pc |
4
by Matthias Vogelgesang
Make ipedec a lib and executable |
37 |
DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) |
38 |
||
10
by Matthias Vogelgesang
Add documentation and split CMakeLists |
39 |
add_subdirectory(src) |
40 |
add_subdirectory(doc) |
|
41 |
add_subdirectory(test) |
|
42 |
||
36
by Matthias Vogelgesang
Add INSTALL and README |
43 |
include(CPack) |