source: git/modules/KernelMacros.cmake @ fec53d

fieker-DuValspielwiese
Last change on this file since fec53d was 8cc501, checked in by Kai Krüger <krueger@…>, 14 years ago
Added files to compile with cmake. Still experimental. Might not work git-svn-id: file:///usr/local/Singular/svn/trunk@13240 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.1 KB
Line 
1# -*- mode: cmake; -*-
2#
3#
4#
5
6function(mk_prcopy GEN_FILE INFILE) 
7
8  message("mk_prcopy...")
9#  set(${GEN_FILE} ${INFILE} PARENT_SCOPE)
10  set(${GEN_FILE} "${CMAKE_CURRENT_BINARY_DIR}/prCopy.inc")
11  add_custom_command(OUTPUT ${${GEN_FILE}}
12    COMMAND perl ${INFILE} > ${${GEN_FILE}}
13
14    DEPENDS ${INFILE}
15    COMMENT "Compiling '${INFILE}'..."
16    )
17  message(STATUS "argv: ${ARGV}")
18  message(STATUS "argn: ${ARGC}")
19  message(STATUS "argn: '${ARGN}'")
20
21
22  set(${GEN_FILE} ${${GEN_FILE}} PARENT_SCOPE)
23endfunction()
24
25#
26#
27#
28function(mk_procs GEN_FILE PROC INFILE )
29  message("mk_procs ${INFILE}...")
30
31  #set(srcs p_Procs_${INFILE}.cc p_Procs_Generate.cc)
32  #set(proc p_Procs_${INFILE})
33  #add_executable(${proc} ${srcs})
34
35  set(_GEN_FILE "${CMAKE_CURRENT_BINARY_DIR}/p_Procs_${INFILE}.inc")
36
37  add_custom_command(OUTPUT ${_GEN_FILE}
38        COMMAND ${PROC} > ${_GEN_FILE}
39
40    DEPENDS ${PROC}
41    COMMENT "Creating '${_GEN_FILE}'..."
42    )
43#        -rm -f p_Procs_$* p_Procs_$*.exe
44#    COMMAND         $(CXX) -g -Dp_Procs_$* p_Procs_Generate.cc -o p_Procs_$*
45  set(${GEN_FILE} ${_GEN_FILE} PARENT_SCOPE)
46  message(STATUS "  mk_procs done")
47
48endfunction()
49
Note: See TracBrowser for help on using the repository browser.