- add cmake support for building zypp/ lib.
[platform/upstream/libzypp.git] / zypp / target / CMakeLists.txt
1 ADD_SUBDIRECTORY( hal ) 
2 ADD_SUBDIRECTORY( modalias ) 
3 ADD_SUBDIRECTORY( rpm ) 
4 ADD_SUBDIRECTORY( store ) 
5
6 INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
7
8 SET(zypp_target_SRCS
9 TargetImpl.cc
10 TargetCallbackReceiver.cc
11 TargetException.cc
12 CommitLog.cc
13 )
14
15 ADD_LIBRARY(zypp_target STATIC ${zypp_target_SRCS})
16 TARGET_LINK_LIBRARIES(zypp_target zypp_target_hal)
17 TARGET_LINK_LIBRARIES(zypp_target zypp_target_modalias)
18 TARGET_LINK_LIBRARIES(zypp_target zypp_target_rpm)
19 TARGET_LINK_LIBRARIES(zypp_target zypp_target_store)
20
21 SET_SOURCE_FILES_PROPERTIES(${zypp_target_SRCS} PROPERTIES COMPILE_FLAGS -DZYPP_BASE_LOGGER_LOGGROUP=\\\"target\\\")
22
23 INSTALL_FILES( FILES
24 CommitLog.h
25 TargetCallbackReceiver.h
26 TargetException.h
27 TargetImpl.h
28 DESTINATION
29 ${CMAKE_INSTALL_PREFIX}/include/zypp/target
30 )