Skip to content
Snippets Groups Projects
Commit fe8a08ad authored by Markus Blatt's avatar Markus Blatt
Browse files

First version DUNE cmake support.

Configure stage runs through, the rest is still untested.
parent 947438a9
No related branches found
No related tags found
No related merge requests found
add_subdirectory(MPI)
install(FILES ppif.h ppif_general.h DESTINATION ${CMAKE_INSTALL_PKGINCLUDEDIR})
if(MPI_FOUND)
add_library(ppifmpi OBJECT ppif.cc)
endif()
add_library(parutil OBJECT xbc.cc)
# for plugins later:
#
# !!! dynamic options should be global or so... or in the lib?
# AM_LDFLAGS = -dlopen self
# xugv needs X11 and XAW, the latter includes the first
if( XAW)
set(XUGV xugv)
endif( XAW )
if(UG_ENABLE_2D)
set(TOOLS_2D ugmgs2 ugpfm2)
endif()
if(UG_ENABLE_3D)
set(TOOLS_3D ugmgs3 ugpfm3)
endif()
set(TOOLS ugnetgen ugstl ${XUGV} ugmesh m2ps)
set(bin_PROGRAMS ${TOOLS} ${TOOLS_2D} ${TOOLS_3D})
# !!! std-domain / device SIF ok?
set(UG_2DLIBS ugS2 devS)
set(UG_3DLIBS libugS3 devS)
add_executable(ugnetgen ugnetgen.cc)
target_link_libraries(ugnetgen ${UG_2DLIBS})
add_executable(ugstl ugstl.cc)
target_link_libraries(ugstl ${UG_2DLIBS})
if(XAW)
add_executable(xugv xugv.cc)
add_dune_ug_flags(xugv )
# The following lines are comment out as the translation is not clear. TODO review
#
# set(xugv_ LDFLAGS ${UG_XLIBS})
# The following lines are comment out as the translation is not clear. TODO review
#
# set(xugv_ LDADD ${UG_2DLIBS})
endif()
add_executable(ugmesh ugmesh.cc)
target_link_libraries(ugmesh ${UG_2DLIBS})
add_executable(m2ps m2ps.cc)
target_link_libraries(m2ps ${UG_2DLIBS})
if(UG_ENABLE_2D)
add_executable(ugpfm2 ugpfm.cc)
target_link_libraries(ugpfm2 ${UG_2DLIBS})
add_executable(ugmgs2 ugmgs.cc)
target_link_libraries(ugmgs2 ${UG_2DLIBS})
endif()
if(UG_ENABLE_3D)
add_executable(ugpfm3 ugpfm.cc)
target_link_libraries(ugpfm2 ${UG_3DLIBS})
add_executable(ugmgs3 ugmgs.cc)
target_link_libraries(ugmgs3 ${UG_3DLIBS})
endif()
install(TARGETS ${bin_PROGRAMS} DESTINATION ${CMAKE_INSTALL_BINDIR})
set(SOURCES uginterface.cc initui.cc cmdint.cc cmdline.cc
dataexplorer.cc commands.cc helpmsg.cc avs.cc
tecplot.cc mmio.cc fieldio.cc)
install(FILES cmdint.h cmdline.h commands.h
DESTINATION ${CMAKE_INSTALL_PKGINCLUDEDIR})
ug_add_dim_libs(ugui OBJECT SOURCES ${SOURCES})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment