]> henry.ined.fr Git - .git/commitdiff
*** empty log message ***
authorN. Brouard <brouard@ined.fr>
Tue, 27 Oct 2015 15:58:38 +0000 (15:58 +0000)
committerN. Brouard <brouard@ined.fr>
Tue, 27 Oct 2015 15:58:38 +0000 (15:58 +0000)
CMakeLists.txt

index 9ae6209aa9733f479b39c825a0c3b270e97f2583..b90a5878866633717621d005d6f811fdc4c822bd 100644 (file)
@@ -242,13 +242,15 @@ ADD_TEST(biaspar  IMaCh-${IMACH_VERSION} html/doc/biaspar.imach )
 #   endif()
 # endif()
 # Add a target to generate API documentation with Doxygen
-find_package(Doxygen)
-if(DOXYGEN_FOUND)
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/latex/Doxyfile.in
-${CMAKE_CURRENT_BINARY_DIR}/latex/Doxyfile @ONLY)
-add_custom_target(doc
-${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/latex/Doxyfile
-WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/latex
-COMMENT "Generating IMaCh documentation with Doxygen" VERBATIM
-)
+if(UNIX)
+  find_package(Doxygen)
+  if(DOXYGEN_FOUND)
+    configure_file(${CMAKE_CURRENT_SOURCE_DIR}/latex/Doxyfile.in
+      ${CMAKE_CURRENT_BINARY_DIR}/latex/Doxyfile @ONLY)
+    add_custom_target(doc
+      ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/latex/Doxyfile
+      WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/latex
+      COMMENT "Generating IMaCh documentation with Doxygen" VERBATIM
+      )
+  endif()
 endif()
\ No newline at end of file