aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/gemcutter/CMakeLists.txt
blob: dff65d18177c9d3a1ce9676ec41e30ccc0bb257a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
paludis_add_library(libpaludisgemcutterrepository
                    OBJECT_LIBRARY
                      "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_dependencies_key.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_id.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_uri_key.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_repository.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/gemcutter_repository_store.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/json_common.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/json_things_handle.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
add_dependencies(libpaludisgemcutterrepository libpaludisutil_SE)

paludis_add_library(libpaludisgemcutterrepositoryjsonthings
                      json_things.cc)
target_include_directories(libpaludisgemcutterrepositoryjsonthings
                           PRIVATE
                             ${Jansson_INCLUDE_DIRS})
target_link_libraries(libpaludisgemcutterrepositoryjsonthings
                      PRIVATE
                        ${Jansson_LIBRARIES})

install(TARGETS
          libpaludisgemcutterrepositoryjsonthings
        DESTINATION
          "${CMAKE_INSTALL_FULL_LIBDIR}")