source: git/modules/OMallocMacros.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: 667 bytes
Line 
1# -*- mode: cmake; -*-
2#
3#
4#
5
6#
7#
8#
9macro(omalloc_create_omalloc_h TARGET GEN_H_FILE CMD INFILE DEPEND)
10  #set(_GEN_TARGET  "gen-header-omallocH")
11  set(GEN_H_FILE  ${CMAKE_CURRENT_BINARY_DIR}/omalloc.h)
12  message(STATUS "Creating '${GEN_H_FILE}'")
13  add_custom_command(
14    OUTPUT  ${GEN_H_FILE}
15    COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/makeheader ${INFILE} ${GEN_H_FILE}
16    DEPENDS ${INFILE} ${DEPEND}
17    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
18    COMMENT "Creating '${GEN_H_FILE}'..."
19    )
20  add_custom_target(${TARGET} DEPENDS ${GEN_H_FILE})
21  #set(${GEN_TARGET} ${_GEN_TARGET} PARENT_SCOPE)
22  #set(${GEN_H_FILE} ${_GEN_H_FILE} PARENT_SCOPE)
23
24endmacro()
Note: See TracBrowser for help on using the repository browser.