2 INCLUDE (CheckFunctionExists)
3 CHECK_FUNCTION_EXISTS (qsort_r HAVE_QSORT_R)
4 CHECK_FUNCTION_EXISTS (__qsort_r HAVE___QSORT_R)
7 ADD_DEFINITIONS (-DHAVE_QSORT_R=1)
11 ADD_DEFINITIONS (-DHAVE___QSORT_R=1)
12 ENDIF (HAVE___QSORT_R)
14 ADD_DEFINITIONS (-DLIBSOLV_INTERNAL=1)
17 bitmap.c poolarch.c poolvendor.c poolid.c strpool.c dirpool.c
18 solver.c solverdebug.c repo_solv.c repo_write.c evr.c pool.c
19 queue.c repo.c repodata.c repopage.c util.c policy.c solvable.c
20 transaction.c rules.c problems.c
21 chksum.c md5.c sha1.c sha2.c solvversion.c selection.c)
24 bitmap.h evr.h hash.h policy.h poolarch.h poolvendor.h pool.h
25 poolid.h pooltypes.h queue.h solvable.h solver.h solverdebug.h
26 repo.h repodata.h repo_solv.h repo_write.h util.h selection.h
27 strpool.h dirpool.h knownid.h transaction.h rules.h problems.h
28 chksum.h dataiterator.h ${CMAKE_BINARY_DIR}/src/solvversion.h)
30 SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
31 SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${LINK_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/src/libsolv.ver")
34 ADD_LIBRARY (libsolv STATIC ${libsolv_SRCS})
36 ADD_LIBRARY (libsolv SHARED ${libsolv_SRCS})
37 ENDIF (DISABLE_SHARED)
39 SET_TARGET_PROPERTIES(libsolv PROPERTIES OUTPUT_NAME "solv")
40 SET_TARGET_PROPERTIES(libsolv PROPERTIES SOVERSION ${LIBSOLV_SOVERSION})
42 INSTALL (FILES ${libsolv_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/solv")
43 INSTALL (TARGETS libsolv LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
45 IF (ENABLE_STATIC AND NOT DISABLE_SHARED)
46 ADD_LIBRARY (libsolv_static STATIC ${libsolv_SRCS})
47 SET_TARGET_PROPERTIES(libsolv_static PROPERTIES OUTPUT_NAME "solv")
48 SET_TARGET_PROPERTIES(libsolv_static PROPERTIES SOVERSION ${LIBSOLV_SOVERSION})
49 INSTALL (TARGETS libsolv_static LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
50 ENDIF (ENABLE_STATIC AND NOT DISABLE_SHARED)