Merge branch 'master' of git@git.opensuse.org:projects/zypp/sat-solver
[platform/upstream/libsolv.git] / src / CMakeLists.txt
1
2 SET(libsatsolver_SRCS
3     bitmap.c poolarch.c poolvendor.c poolid.c strpool.c dirpool.c
4     solver.c solverdebug.c repo_solv.c repo_helix.c evr.c pool.c
5     queue.c repo.c repodata.c repopage.c util.c policy.c solvable.c
6     transaction.c rules.c problems.c)
7
8 ADD_LIBRARY(satsolver STATIC ${libsatsolver_SRCS})
9
10 SET(libsatsolver_HEADERS
11     bitmap.h evr.h hash.h policy.h poolarch.h poolvendor.h pool.h
12     poolid.h pooltypes.h queue.h solvable.h solver.h solverdebug.h
13     repo.h repodata.h repopage.h repo_solv.h repo_helix.h util.h
14     strpool.h dirpool.h knownid.h transaction.h rules.h problems.h)
15
16 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
17
18 INSTALL(FILES ${libsatsolver_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/satsolver")
19 INSTALL(TARGETS satsolver LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})