Diff for /imach/CMakeLists.txt between versions 1.21 and 1.48

version 1.21, 2019/05/21 15:55:06 version 1.48, 2024/04/30 11:04:49
Line 8 Line 8
 # SET (CMAKE_CONFIGURATION_TYPES "Debug;RelWithDebinfo" CACHE STRING "" FORCE)  # SET (CMAKE_CONFIGURATION_TYPES "Debug;RelWithDebinfo" CACHE STRING "" FORCE)
 set(PACKAGE_NAME "imach")  set(PACKAGE_NAME "imach")
 SET(IMACH_VERSION_MAJOR 0)  SET(IMACH_VERSION_MAJOR 0)
 SET(IMACH_VERSION_MINOR 99r19)  SET(IMACH_VERSION_MINOR 99s4)
 SET(IMACH_VERSION_PATCH 0)  SET(IMACH_VERSION_PATCH 0)
 SET(IMACH_VERSION_NOTE "")  SET(IMACH_VERSION_NOTE "")
 SET(IMACH_VERSION ${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR})  SET(IMACH_VERSION ${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR})
 SET(@APPNAME@ IMaCh-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR})  SET(@APPNAME@ imach-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR})
 SET(@NOTINNOREG@ )  SET(@NOTINNOREG@ )
 SET(@NOREG@ )  SET(@NOREG@ )
 SET(@IMACHSETUPVERSION@ imach-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR}-icl-setup)  SET(@IMACHSETUPVERSION@ imach-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR}-icl-setup)
Line 24  SET(@LICENSEFILE@ Copying) Line 24  SET(@LICENSEFILE@ Copying)
 SET(@PACKAGE@ imach)  SET(@PACKAGE@ imach)
 SET(@DICTLANG@ en)  SET(@DICTLANG@ en)
 SET(@VERMAJOR@ )  SET(@VERMAJOR@ )
 SET(@COPYRIGHT@ "Copyright (C)  2002-2015 INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121) 2013-2016- Intel Software 2015-2018")  SET(@COPYRIGHT@ "Copyright (C)  2002-2015 EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121) 2013-2016- Intel Software 2015-2018 2000-2023 INED")
 #SET(IMACH_VERSION ${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR}.${IMACH_VERSION_PATCH})  #SET(IMACH_VERSION ${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR}.${IMACH_VERSION_PATCH})
 #MATH(EXPR IMACH_VERSION_NUMBER "100000*${IMACH_VERSION_MAJOR} + 100*${IMACH_VERSION_MINOR} + ${IMACH_VERSION_PATCH}")  #MATH(EXPR IMACH_VERSION_NUMBER "100000*${IMACH_VERSION_MAJOR} + 100*${IMACH_VERSION_MINOR} + ${IMACH_VERSION_PATCH}")
   
 # #PROJECT(IMaCh${IMACH_VERSION_MAJOR})  # #PROJECT(IMaCh${IMACH_VERSION_MAJOR})
 PROJECT (IMaCh)  
   
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)  CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
   PROJECT (imach)
   
   
 CONFIGURE_FILE(  CONFIGURE_FILE(
   "${PROJECT_SOURCE_DIR}/version.h.in"    "${PROJECT_SOURCE_DIR}/version.h.in"
Line 48  CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/te Line 48  CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/te
 CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/data/mydata.txt" "html/doc/data/mydata.txt" COPYONLY)  CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/data/mydata.txt" "html/doc/data/mydata.txt" COPYONLY)
 # Test files  # Test files
 CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/data/data2.txt" "tests/data/data2.txt" COPYONLY)  CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/data/data2.txt" "tests/data/data2.txt" COPYONLY)
 CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/testV2.imach" "tests/testV2.imach" COPYONLY)  #CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/testV2.imach" "tests/testV2.imach" COPYONLY)
 CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/testV1V2.imach" "tests/testV1V2.imach" COPYONLY)  #CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/testV1V2.imach" "tests/testV1V2.imach" COPYONLY)
   
   
 set (imach_SRCS ./src/imach.c)  set (imach_SRCS ./src/imach.c)
 SET( CMAKE_VERBOSE_MAKEFILE on )  SET( CMAKE_VERBOSE_MAKEFILE on )
 #SET(CMAKE_INSTALL_PREFIX "/usr/local")  #SET(CMAKE_INSTALL_PREFIX "/usr/local")
 ADD_EXECUTABLE (IMaCh-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR} ${imach_SRCS})  ADD_EXECUTABLE (imach-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR} ${imach_SRCS})
 INSTALL(TARGETS IMaCh-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR} DESTINATION bin COMPONENT binaries )  INSTALL(TARGETS imach-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR} DESTINATION bin COMPONENT binaries )
 #INSTALL(TARGETS imach DESTINATION bin COMPONENT binaries )  #INSTALL(TARGETS imach DESTINATION bin COMPONENT binaries )
 ADD_SUBDIRECTORY(html)  ADD_SUBDIRECTORY(html)
 ADD_SUBDIRECTORY(tests)  ADD_SUBDIRECTORY(tests)
Line 68  ADD_SUBDIRECTORY(tests) Line 68  ADD_SUBDIRECTORY(tests)
 #endif()  #endif()
 if(UNIX)  if(UNIX)
   #   set(CMAKE_CXX_COMPILER "gcc")    #   set(CMAKE_CXX_COMPILER "gcc")
   target_link_libraries(IMaCh-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR} m)    target_link_libraries(imach-${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR} m)
   set(BINDIR "${CMAKE_INSTALL_PREFIX}/bin")    set(BINDIR "${CMAKE_INSTALL_PREFIX}/bin")
   set(DOCDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/doc")    set(DOCDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/doc")
   set(TESTDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/tests")    set(TESTDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/tests")
     set(DATADIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/tests/data")
   set(MANDIR "${CMAKE_INSTALL_PREFIX}/share/man/man1")    set(MANDIR "${CMAKE_INSTALL_PREFIX}/share/man/man1")
   #set(EXAMPLE_CONF_DIR ${DOCDIR})    #set(EXAMPLE_CONF_DIR ${DOCDIR})
   set(XDG_APPS_DIR "${CMAKE_INSTALL_PREFIX}/share/applications")    set(XDG_APPS_DIR "${CMAKE_INSTALL_PREFIX}/share/applications")
   set(APPDATADIR "${CMAKE_INSTALL_PREFIX}/share/appdata")    set(APPDATADIR "${CMAKE_INSTALL_PREFIX}/share/appdata")
   set(ICONDIR "${CMAKE_INSTALL_PREFIX}/share/icons")    set(ICONDIR "${CMAKE_INSTALL_PREFIX}/share/icons")
     install(FILES "distributions/gnulinux/imach.1" DESTINATION "${MANDIR}")
     install(FILES "distributions/gnulinux/imach.png" DESTINATION "${ICONDIR}")
     install(FILES "distributions/gnulinux/imach.desktop" DESTINATION "${XDG_APPS_DIR}")
 endif()  endif()
 if(MSVC)  if(MSVC)
   set(DOCDIR "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}/doc")    set(DOCDIR "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}/doc")
     set(TESTDIR "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}/tests")
     set(DATADIR "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}/tests/data")
   set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")    set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
   set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")    set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")
   set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")    set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
Line 94  install(FILES "html/doc/data/mydata.txt" Line 100  install(FILES "html/doc/data/mydata.txt"
 install(FILES "html/doc/biaspar.imach" DESTINATION "${DOCDIR}")  install(FILES "html/doc/biaspar.imach" DESTINATION "${DOCDIR}")
 install(FILES "html/doc/data1.txt" DESTINATION "${DOCDIR}")  install(FILES "html/doc/data1.txt" DESTINATION "${DOCDIR}")
 install(FILES "src/README.txt" DESTINATION "${DOCDIR}")  install(FILES "src/README.txt" DESTINATION "${DOCDIR}")
 install(FILES "distributions/gnulinux/imach.1" DESTINATION "${MANDIR}")  #install(FILES "tests/testV1V2.imach" DESTINATION "${TESTDIR}")
 install(FILES "distributions/gnulinux/imach.png" DESTINATION "${ICONDIR}")  install(FILES "tests/rtestV1V2.imach" DESTINATION "${TESTDIR}")
 install(FILES "distributions/gnulinux/imach.desktop" DESTINATION "${XDG_APPS_DIR}")  install(FILES "tests/testV2.imach" DESTINATION "${TESTDIR}")
   install(FILES "tests/rtestV2.imach" DESTINATION "${TESTDIR}")
   install(FILES "tests/data/data2.txt" DESTINATION "${DATADIR}")
 #not working install(FILES "imach.desktop" DESTINATION "${XDG_APPS_DIR}")  #not working install(FILES "imach.desktop" DESTINATION "${XDG_APPS_DIR}")
 #install(FILES "html" DESTINATION "${DOCDIR}")  #install(FILES "html" DESTINATION "${DOCDIR}")
   
Line 108  set(CPACK_PACKAGE_CONTACT "Nicolas Broua Line 116  set(CPACK_PACKAGE_CONTACT "Nicolas Broua
 set(CPACK_PACKAGE_VENDOR "INED")  set(CPACK_PACKAGE_VENDOR "INED")
 SET(CPACK_PACKAGE_VENDOR "IMaCh, INED")  SET(CPACK_PACKAGE_VENDOR "IMaCh, INED")
 SET(CPACK_PACKAGE_LICENSE "GPLv2")  SET(CPACK_PACKAGE_LICENSE "GPLv2")
   #SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.txt")
 SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt")  SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt")
 SET(CPACK_PACKAGE_VERSION_MAJOR "${IMACH_VERSION_MAJOR}")  SET(CPACK_PACKAGE_VERSION_MAJOR "${IMACH_VERSION_MAJOR}")
 SET(CPACK_PACKAGE_VERSION_MINOR "${IMACH_VERSION_MINOR}")  SET(CPACK_PACKAGE_VERSION_MINOR "${IMACH_VERSION_MINOR}")
Line 122  set(CPACK_RPM_PACKAGE_URL "http://eurore Line 131  set(CPACK_RPM_PACKAGE_URL "http://eurore
 IF(UNIX)  IF(UNIX)
   SET(CPACK_RPM_PACKAGE_LICENSE "GPL")    SET(CPACK_RPM_PACKAGE_LICENSE "GPL")
   SET(CPACK_RPM_PACKAGE_GROUP "Applications/Sciences")    SET(CPACK_RPM_PACKAGE_GROUP "Applications/Sciences")
   SET(CPACK_RPM_PACKAGE_REQUIRES "gnuplot >= 4.2, cmake >= 2.8")    SET(CPACK_RPM_PACKAGE_REQUIRES "gnuplot >= 5.0, cmake >= 2.8")
   SET(CPACK_GENERATOR "TXZ")    SET(CPACK_GENERATOR "TXZ")
   SET(CPACK_SOURCE_GENERATOR "TXZ")    SET(CPACK_SOURCE_GENERATOR "TXZ")
   SET(CPACK_SOURCE_TBZ2 "OFF")    SET(CPACK_SOURCE_TBZ2 "OFF")
Line 141  IF(UNIX) Line 150  IF(UNIX)
   # ${CMAKE_CURRENT_SOURCE_DIR}/specchangelog")    # ${CMAKE_CURRENT_SOURCE_DIR}/specchangelog")
   set(CPACK_RPM_CHANGELOG_FILE "${PROJECT_SOURCE_DIR}/src/Changelog")    set(CPACK_RPM_CHANGELOG_FILE "${PROJECT_SOURCE_DIR}/src/Changelog")
   SET(CPACK_BINARY_RPM "ON")    SET(CPACK_BINARY_RPM "ON")
   # NEW  set(CPACK_RPM_COMPONENT_INSTALL ON)
   SET(CPACK_RPM_PACKAGE_SOURCES "ON")    SET(CPACK_RPM_PACKAGE_SOURCES "ON")
   set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")    set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
   SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.src")    SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.src")
Line 202  INCLUDE(CPack) Line 212  INCLUDE(CPack)
 #   set(VERSION_PATCH "${BUILD_VERSION_PATCH}")  #   set(VERSION_PATCH "${BUILD_VERSION_PATCH}")
 # ENDIF()  # ENDIF()
 file( GLOB_RECURSE parameter_files RELATIVE  file( GLOB_RECURSE parameter_files RELATIVE
 "${CMAKE_CURRENT_SOURCE_DIR}/html/doc" "html/*.imach" )  "${CMAKE_CURRENT_SOURCE_DIR}/html/doc" "html/*.imach" "tests/*.imach" )
 foreach( parameter_file ${parameter_files} )  foreach( parameter_file ${parameter_files} )
   add_custom_command(    add_custom_command(
     OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${parameter_file}"      OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${parameter_file}"
Line 301  if(UNIXDODOXYGEN) Line 311  if(UNIXDODOXYGEN)
   endif (DOXYGEN_FOUND)    endif (DOXYGEN_FOUND)
   message("Doxygen only in UNIX doxygen documentation")    message("Doxygen only in UNIX doxygen documentation")
 endif (UNIXDODOXYGEN)  endif (UNIXDODOXYGEN)
   

Removed from v.1.21  
changed lines
  Added in v.1.48


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>