changeset 1156:8c9574576f42

install plugin sdk
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Sep 2014 15:53:57 +0200
parents 63924bc389bf
children 22ef457b7985 80671157d051
files CMakeLists.txt NEWS
diffstat 2 files changed, 17 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Thu Sep 11 17:51:06 2014 +0200
+++ b/CMakeLists.txt	Fri Sep 12 15:53:57 2014 +0200
@@ -476,7 +476,9 @@
     )
 
   install(
-    FILES ${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/AUTOGENERATED/OrthancCppClient.h 
+    FILES
+    ${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/AUTOGENERATED/OrthancCppClient.h 
+    ${ORTHANC_ROOT}/Plugins/OrthancCPlugin/OrthancCPlugin.h 
     DESTINATION include/orthanc
     )
 endif()
@@ -502,10 +504,19 @@
 
   add_custom_target(doc
     ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Orthanc.doxygen
-    COMMAND
-    ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/OrthancPlugin.doxygen
+    COMMENT "Generating internal documentation with Doxygen" VERBATIM
+    )
+
+  add_custom_command(TARGET Orthanc
+    POST_BUILD
+    COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/OrthancPlugin.doxygen
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-    COMMENT "Generating internal documentation with Doxygen" VERBATIM
+    COMMENT "Generating plugin documentation with Doxygen" VERBATIM
+    )
+
+  install(
+    DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/OrthancPluginDocumentation/doc/
+    DESTINATION share/doc/orthanc/OrthancPlugin
     )
 
   if (BUILD_CLIENT_LIBRARY)
--- a/NEWS	Thu Sep 11 17:51:06 2014 +0200
+++ b/NEWS	Fri Sep 12 15:53:57 2014 +0200
@@ -1,6 +1,8 @@
 Pending changes in the mainline
 ===============================
 
+* Installation of plugin SDK in CMake
+
 
 Version 0.8.3 (2014/09/11)
 ==========================