--- imach/CMakeLists.txt 2015/09/15 17:57:21 1.5 +++ imach/CMakeLists.txt 2015/10/27 15:58:38 1.8 @@ -6,8 +6,9 @@ # FORCE) # endif() # 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 98r2) SET(IMACH_VERSION_PATCH 0) SET(IMACH_VERSION_NOTE "") SET(IMACH_VERSION ${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR}) @@ -91,8 +92,9 @@ install(FILES "html/doc/biaspar.imach" D install(FILES "html/doc/data1.txt" DESTINATION "${DOCDIR}") #install(FILES "html" DESTINATION "${DOCDIR}") + set(CPACK_PACKAGE_VERSION ${IMACH_VERSION}) -set(CPACK_PACKAGE_NAME "IMaCh") +set(CPACK_PACKAGE_NAME "imach") set(CPACK_PACKAGE_RELEASE 2) set(CPACK_PACKAGE_CONTACT "Nicolas Brouard") set(CPACK_PACKAGE_VENDOR "INED") @@ -240,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