1SET(SOURCES
2  src/couch_index_barrier.erl
3  src/couch_set_view_compactor.erl
4  src/couch_set_view_ddoc_cache.erl
5  src/couch_set_view_dev.erl
6  src/couch_set_view.erl
7  src/couch_set_view_group.erl
8  src/couch_set_view_http.erl
9  src/couch_set_view_mapreduce.erl
10  src/couch_set_view_updater.erl
11  src/couch_set_view_updater_helper.erl
12  src/couch_set_view_util.erl
13  src/mapreduce_view.erl)
14SET(HEADERS
15  include/couch_set_view.hrl)
16
17ADD_ERLANG_INCLUDE_DIR(${CMAKE_CURRENT_SOURCE_DIR}/../couchdb)
18ADD_ERLANG_INCLUDE_DIR(${CMAKE_CURRENT_SOURCE_DIR}/..)
19
20ERL_BUILD_OTP (APPNAME "couch_set_view" VERSION 1.0.0
21  INSTALL_PATH ${CMAKE_ERL_LIB_INSTALL_PREFIX}
22  HEADERS ${HEADERS} SOURCES ${SOURCES} DEPENDS ${COUCHDB_ALL_ERLANG_HEADERS})
23
24ADD_SUBDIRECTORY(test)
25