1IF (WIN32)
2   CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/couchdb.bat.tpl.in
3                  ${CMAKE_CURRENT_BINARY_DIR}/couchdb.bat.tpl)
4
5   CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/couchdb.bat.tpl.in
6                  ${CMAKE_CURRENT_BINARY_DIR}/couchdb.bat)
7
8   INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/couchdb.bat
9           DESTINATION bin)
10
11ELSE (WIN32)
12   CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/couchjs.tpl.in
13                  ${CMAKE_CURRENT_BINARY_DIR}/couchjs.tpl)
14
15   CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/couchjs.tpl.in
16                  ${CMAKE_CURRENT_BINARY_DIR}/couchjs)
17
18   CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/couchjs.tpl.in
19                  ${CMAKE_CURRENT_BINARY_DIR}/couchjs_dev)
20
21   CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/couchdb.tpl.in
22                  ${CMAKE_CURRENT_BINARY_DIR}/couchdb.tpl)
23
24   CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/couchdb.tpl.in
25                  ${CMAKE_CURRENT_BINARY_DIR}/couchdb)
26
27   INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/couchjs
28                    ${CMAKE_CURRENT_BINARY_DIR}/couchdb
29           DESTINATION bin)
30ENDIF (WIN32)
31