- allow to build a shared and a static version of the libraries
[platform/upstream/libsolv.git] / examples / CMakeLists.txt
1 # as we link with --as-needed we do not get bogus dependencies
2 SET (SYSTEM_LIBRARIES ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
3 IF (NOT DEBIAN)
4 SET (SYSTEM_LIBRARIES ${RPMDB_LIBRARY} ${SYSTEM_LIBRARIES})
5 ENDIF (NOT DEBIAN)
6
7 ADD_EXECUTABLE (solv solv.c)
8 TARGET_LINK_LIBRARIES (solv libsolvext libsolv ${SYSTEM_LIBRARIES})
9
10 INSTALL(TARGETS
11     solv
12     DESTINATION ${BIN_INSTALL_DIR})