xref: /5.5.2/couchdb/src/couchdb/CMakeLists.txt (revision 1fc9a81f)
1SET(COUCHDB_SRC erl_diag.erl
2            file2.erl
3            file_sorter_2.erl
4            couch.erl
5            couch_api_wrap.erl
6            couch_api_wrap_httpc.erl
7            couch_app.erl
8            couch_auth_cache.erl
9            couch_btree.erl
10            couch_btree_copy.erl
11            couch_btree_stats.erl
12            couch_changes.erl
13            couch_compaction_daemon.erl
14            couch_compress.erl
15            couch_config.erl
16            couch_config_writer.erl
17            couch_db.erl
18            couch_db_update_notifier.erl
19            couch_db_consistency_check.erl
20            couch_db_update_notifier_sup.erl
21            couch_doc.erl
22            couch_ejson_compare.erl
23            couch_event_sup.erl
24            couch_file.erl
25            couch_file_write_guard.erl
26            couch_db_frontend.erl
27            couch_httpd.erl
28            couch_httpd_db.erl
29            couch_httpd_auth.erl
30            couch_httpd_oauth.erl
31            couch_httpd_external.erl
32            couch_httpd_view.erl
33            couch_httpd_misc_handlers.erl
34            couch_httpd_replicator.erl
35            couch_log.erl
36            couch_native_process.erl
37            couch_os_process.erl
38            couch_primary_sup.erl
39            couch_query_servers.erl
40            couch_ref_counter.erl
41            couch_rep_sup.erl
42            couch_replication_manager.erl
43            couch_replication_notifier.erl
44            couch_replicator.erl
45            couch_replicator_worker.erl
46            couch_replicator_utils.erl
47            couch_secondary_sup.erl
48            couch_server.erl
49            couch_server_sup.erl
50            couch_task_status.erl
51            couch_util.erl
52            couch_uuids.erl
53            couch_view.erl
54            couch_view_compactor.erl
55            couch_view_updater.erl
56            couch_view_group.erl
57            couch_view_mapreduce.erl
58            couch_db_updater.erl
59            couch_work_queue.erl
60            json_stream_parse.erl)
61
62# Todo We should automagically build the module list..
63CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/couch.app.tpl.in
64               ${CMAKE_CURRENT_BINARY_DIR}/couch.app)
65
66#todo remove this.. its currently just to diff the directories
67CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/couch.app.tpl.in
68               ${CMAKE_CURRENT_BINARY_DIR}/couch.app.tpl)
69
70
71ERL_BUILD(APPNAME "couchdb" SOURCES ${COUCHDB_SRC}
72          DEPENDS ${COUCHDB_ALL_ERLANG_HEADERS})
73SET(COUCH_LIB_DIR ${CMAKE_ERL_LIB_INSTALL_PREFIX}/couch-1.2.0a-961ad59-git)
74SET(COUCH_LIB_INCLUDE_DIR ${COUCH_LIB_DIR}/include)
75SET(COUCH_LIB_BIN_DIR ${COUCH_LIB_DIR}/ebin)
76ADD_SUBDIRECTORY(priv)
77
78INSTALL(FILES ${outfiles}
79              ${CMAKE_CURRENT_BINARY_DIR}/couch.app
80        DESTINATION ${COUCH_LIB_BIN_DIR})
81
82INSTALL(FILES couch_api_wrap.hrl
83              couch_db.hrl
84              couch_js_functions.hrl
85              couch_replicator.hrl
86        DESTINATION ${COUCH_LIB_DIR}/include)
87