--- imach/CMakeLists.txt 2015/09/17 06:19:29 1.6 +++ imach/CMakeLists.txt 2015/12/16 08:51:13 1.10 @@ -8,7 +8,7 @@ # SET (CMAKE_CONFIGURATION_TYPES "Debug;RelWithDebinfo" CACHE STRING "" FORCE) set(PACKAGE_NAME "imach") SET(IMACH_VERSION_MAJOR 0) -SET(IMACH_VERSION_MINOR 98r0) +SET(IMACH_VERSION_MINOR 98r4) SET(IMACH_VERSION_PATCH 0) SET(IMACH_VERSION_NOTE "") SET(IMACH_VERSION ${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR}) @@ -242,13 +242,15 @@ ADD_TEST(biaspar IMaCh-${IMACH_VERSION} # 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