1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
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})
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)
14 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/capi-base-common.pc DESTINATION lib/pkgconfig)
16 INCLUDE_DIRECTORIES(${INC_DIR})
22 ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
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)
31 ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
34 COMMENT "distribution clean"
37 -not -name config.cmake -and \(
41 -name cmake.depends -or
42 -name cmake.check_depends -or
43 -name CMakeCache.txt -or
44 -name cmake.check_cache -or
50 -name install_manifest.txt -or
53 | grep -v TC | xargs rm -rf