Commits

a4z  committed d74c7a7

install doc via cmake imporved + up to v0.2.1

  • Participants
  • Parent commits fef7481

Comments (0)

Files changed (2)

-ee23be2436d237734000cc6252240f014dc3c3e9 a4sqlt3
-8013db989717c36e48ab463f5e5d5daf996f31d1 a4z
-a65524737bf28513ab78c0884d494b2525f249a6 sbbdep
+b3014b8c3188e9f88b46843cc637ad26ca67ef6d a4sqlt3
+f6e491a7368e2e67150de4fadd415bee9dfb8c33 a4z
+69f49f2e5e82eb68675bccf8718143ff06f4b27e sbbdep

File CMakeLists.txt

 add_subdirectory(a4sqlt3)
 add_subdirectory(sbbdep)
 
+if(NOT CMAKE_DOC_DIR)
 
+  SET(CMAKE_DOC_DIR "doc/sbbdep" CACHE STRING
+      "Choose the target directory where documentation files will be installed."
+      FORCE )
+endif(NOT CMAKE_DOC_DIR)
 
-INSTALL(FILES sbbdep/README.txt sbbdep/README_db.txt DESTINATION  doc/sbbdep)
+#CMAKE_DATA_DIR="TODO"
+#CMAKE_DOC_DIR="TODO"
+#CMAKE_MAN_DIR="TODO"
+
+set(SBBDEP_DOC_FILES 
+sbbdep/README.txt sbbdep/README_db.txt sbbdep/AUTHORS sbbdep/COPYING
+samples.sql 
+)
+
+
+INSTALL(FILES ${SBBDEP_DOC_FILES} DESTINATION  ${CMAKE_DOC_DIR})
 INSTALL(PROGRAMS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sbbdep DESTINATION bin)