File: groups-package.cmake

package info (click to toggle)
libsbml 5.17.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 156,336 kB
  • sloc: cpp: 1,012,766; xml: 314,374; cs: 58,129; ansic: 54,053; python: 27,299; java: 27,152; makefile: 9,721; perl: 9,039; sh: 8,777; ruby: 4,760; php: 202; csh: 3
file content (63 lines) | stat: -rw-r--r-- 2,349 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
####################################################################
#
# SBML Groups package 
#
# $Author Lucian Smith$
# $Id$
# $HeadURL$
#

if (ENABLE_GROUPS)
#        add_subdirectory(c/groups)
  add_subdirectory(c++/groups)
  
  if(WITH_CSHARP)
    add_subdirectory(csharp/groups)
  endif(WITH_CSHARP)
  
  if(WITH_JAVA)
    add_subdirectory(java/groups)
  endif(WITH_JAVA)
  
  
  file(GLOB c_groups_samples "${CMAKE_CURRENT_SOURCE_DIR}/c/groups/*.c"
                         "${CMAKE_CURRENT_SOURCE_DIR}/c/groups/*.h"
                         "${CMAKE_CURRENT_SOURCE_DIR}/c/groups/README.txt")
  install(FILES ${c_groups_samples} DESTINATION ${MISC_PREFIX}examples/c/groups)

  file(GLOB cpp_groups_samples "${CMAKE_CURRENT_SOURCE_DIR}/c++/groups/*.c"
                         "${CMAKE_CURRENT_SOURCE_DIR}/c++/groups/*.cpp"
                         "${CMAKE_CURRENT_SOURCE_DIR}/c++/groups/*.h"
                         "${CMAKE_CURRENT_SOURCE_DIR}/c++/groups/README.txt")
  install(FILES ${cpp_groups_samples} DESTINATION ${MISC_PREFIX}examples/c++/groups)

  if(WITH_PERL)
  # install perl examples
  file(GLOB perl_groups_samples "${CMAKE_CURRENT_SOURCE_DIR}/perl/groups/*.pl"
                         "${CMAKE_CURRENT_SOURCE_DIR}/perl/groups/README.txt")
  install(FILES ${perl_groups_samples} DESTINATION ${MISC_PREFIX}examples/perl/groups)
  endif()
  
  if (WITH_PYTHON)
  # install python examples
  file(GLOB python_groups_samples "${CMAKE_CURRENT_SOURCE_DIR}/python/groups/*.py"
                           "${CMAKE_CURRENT_SOURCE_DIR}/python/groups/README.txt")
  install(FILES ${python_groups_samples} DESTINATION ${MISC_PREFIX}examples/python/groups)
  endif()
  
  
  if(WITH_RUBY)
  # install ruby examples
  file(GLOB ruby_groups_samples "${CMAKE_CURRENT_SOURCE_DIR}/ruby/groups/*.rb"
                         "${CMAKE_CURRENT_SOURCE_DIR}/ruby/groups/README.txt")
  install(FILES ${ruby_groups_samples} DESTINATION ${MISC_PREFIX}examples/ruby/groups)
  endif()
  
  if (WITH_R)
  # install r examples
  file(GLOB r_groups_samples "${CMAKE_CURRENT_SOURCE_DIR}/r/groups/*.R"
                           "${CMAKE_CURRENT_SOURCE_DIR}/r/groups/README.txt")
  install(FILES ${r_groups_samples} DESTINATION ${MISC_PREFIX}examples/r/groups)
  endif()
  
endif(ENABLE_GROUPS)