Added new error values and docs files for doxygen
[platform/core/api/common.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2
3 PROJECT("capi-base-common")
4 SET(fw_name "capi-base-common")
5 SET(CMAKE_INSTALL_PREFIX "/usr")
6 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
7 SET(VERSION ${FULLVER})
8 SET(PC_LDFLAGS -l${fw_name})
9
10 INSTALL(FILES include/tizen.h DESTINATION include)
11 INSTALL(FILES include/tizen_error.h DESTINATION include)
12 INSTALL(FILES include/tizen_type.h DESTINATION include)
13
14 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/capi-base-common.pc DESTINATION lib/pkgconfig)
15 SET(INC_DIR include)
16 INCLUDE_DIRECTORIES(${INC_DIR})
17
18 SET(SOURCES
19         src/tizen_error.c
20 )
21
22 ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
23
24 SET_TARGET_PROPERTIES(${fw_name} PROPERTIES VERSION ${FULLVER})
25 SET_TARGET_PROPERTIES(${fw_name} PROPERTIES SOVERSION 0)
26 INSTALL(TARGETS ${fw_name} DESTINATION ${LIB_INSTALL_DIR})
27 CONFIGURE_FILE(${fw_name}.pc.in ${fw_name}.pc @ONLY)
28
29 IF(UNIX)
30
31 ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
32 ADD_CUSTOM_COMMAND(
33         DEPENDS clean 
34         COMMENT "distribution clean"
35         COMMAND find
36         ARGS    . 
37         -not -name config.cmake -and \(
38         -name tester.c -or
39         -name Testing -or
40         -name CMakeFiles -or
41         -name cmake.depends -or
42         -name cmake.check_depends -or
43         -name CMakeCache.txt -or
44         -name cmake.check_cache -or
45         -name *.cmake -or
46         -name Makefile -or
47         -name core -or
48         -name core.* -or
49         -name gmon.out -or
50         -name install_manifest.txt -or
51         -name *.pc -or
52         -name *~ \)
53         | grep -v TC | xargs rm -rf
54         TARGET  distclean
55         VERBATIM
56 )
57
58 ENDIF(UNIX)