# --
newlines.append(r'''
SET(libs ${${amname}_LIBADD} ${${amname}_LDADD} ${${amname}_LDFLAGS})
+ ''')
+ if key == "bin_PROGRAMS":
+ newlines.append(r'''
+ SET(libs ${libs} ${LDADD})
+ ''')
+ pass
+ # --
+ newlines.append(r'''
FOREACH(lib ${libs})
GET_FILENAME_COMPONENT(ext ${lib} EXT)
IF(ext STREQUAL .la)
ENDIF(name STREQUAL GEOMEngine)
ENDIF(WINDOWS)
''')
- if self.module in ["geom"]:
+ if self.module in ["geom", "med"]:
newlines.append(r'''
SET(var ${var} -I${CMAKE_CURRENT_SOURCE_DIR})
SET(var ${var} -I${CMAKE_CURRENT_BINARY_DIR})
''')
pass
+ if key == "bin_PROGRAMS":
+ newlines.append(r'''
+ SET(var ${var} ${AM_CPPFLAGS})
+ SET(var ${var} ${AM_CXXFLAGS})
+ ''')
+ pass
newlines.append(r'''
SET(var ${var} ${PLATFORM_CPPFLAGS})
SET(var ${var} ${PTHREADS_INCLUDES})