Diff for /imach/CMakeLists.txt between versions 1.2 and 1.4

version 1.2, 2015/08/18 23:19:13 version 1.4, 2015/09/03 07:53:42
Line 27  CONFIGURE_FILE( Line 27  CONFIGURE_FILE(
   "${PROJECT_SOURCE_DIR}/config.h.in"    "${PROJECT_SOURCE_DIR}/config.h.in"
   "${PROJECT_BINARY_DIR}/config.h"    "${PROJECT_BINARY_DIR}/config.h"
 )  )
   CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/mypar.imach.in" "html/doc/mypar.imach")
   CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/biaspar.imach.in" "html/doc/biaspar.imach")
   CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/data1.txt" "html/doc/data1.txt" COPYONLY)
   CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/tests/data/mydata.txt" "html/doc/data/mydata.txt" COPYONLY)
   
 set (imach_SRCS ./src/imach.c)  set (imach_SRCS ./src/imach.c)
 SET( CMAKE_VERBOSE_MAKEFILE on )  SET( CMAKE_VERBOSE_MAKEFILE on )
 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 )
 ADD_SUBDIRECTORY(html)  ADD_SUBDIRECTORY(html)
   ADD_SUBDIRECTORY(tests)
 ADD_SUBDIRECTORY(src)  ADD_SUBDIRECTORY(src)
 ADD_SUBDIRECTORY(distributions)  ADD_SUBDIRECTORY(distributions)
 #if (${WIN32})  #if (${WIN32})
   #if(APPLE)
   #  set(DOCDIR "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}/doc")
   #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)
Line 138  INCLUDE(CPack) Line 146  INCLUDE(CPack)
 # else()  # else()
 #   set(VERSION_PATCH "${BUILD_VERSION_PATCH}")  #   set(VERSION_PATCH "${BUILD_VERSION_PATCH}")
 # ENDIF()  # ENDIF()
   file( GLOB_RECURSE parameter_files RELATIVE
   "${CMAKE_CURRENT_SOURCE_DIR}/html/doc" "html/*.imach" )
   foreach( parameter_file ${parameter_files} )
     add_custom_command(
       OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${parameter_file}"
       COMMAND cmake -E copy
   "${CMAKE_CURRENT_SOURCE_DIR}/${parameter_file}"
   "${CMAKE_CURRENT_BINARY_DIR}/${parameter_file}"
       DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${parameter_file}"
     )
     list( APPEND parameter_files_dest "${parameter_file}" )
   endforeach( parameter_file )
   
   #add_custom_target( CopyParameter ALL DEPENDS ${parameter_files_dest} )
 ENABLE_TESTING()  ENABLE_TESTING()
 SUBDIRS(html/doc)  ADD_SUBDIRECTORY(html/doc)
 SUBDIRS(html/doc/data)  ADD_SUBDIRECTORY(html/doc/data)
   install(FILES "${PROJECT_SOURCE_DIR}/html/doc/mypar.imach" DESTINATION "html/doc/mypar.imach")
 ADD_TEST(mypar  IMaCh-${IMACH_VERSION} html/doc/mypar.imach )  ADD_TEST(mypar  IMaCh-${IMACH_VERSION} html/doc/mypar.imach )
 ADD_TEST(biaspar  IMaCh-${IMACH_VERSION} html/doc/biaspar.imach )  ADD_TEST(biaspar  IMaCh-${IMACH_VERSION} html/doc/biaspar.imach )
 #SET(FAB "po" CACHE STRING "Some user-specified option")  #SET(FAB "po" CACHE STRING "Some user-specified option")

Removed from v.1.2  
changed lines
  Added in v.1.4


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