Commit c905cdf4 authored by Christoph Gersbacher's avatar Christoph Gersbacher

Fix CMake support

parent 953801e1
......@@ -18,7 +18,6 @@ include(DuneMacros)
# start a dune project with information from dune.module
dune_project()
add_subdirectory("src")
add_subdirectory("m4")
add_subdirectory("dune")
add_subdirectory("doc")
......
set(modules "DunePrismgridMacros.cmake")
install(FILES ${modules} DESTINATION ${DUNE_INSTALL_MODULEDIR})
install( FILES DunePrismgridMacros.cmake DESTINATION ${DUNE_INSTALL_MODULEDIR} )
MODULES = DunePrismgridMacros.cmake
modulesdir = $(datadir)/dune/cmake/modules
dist_modules_DATA = ${MODULES}
include $(top_srcdir)/am/global-rules
dist_modules_DATA = \
DunePrismgridMacros.cmake
EXTRA_DIST = CMakeLists.txt
include $(top_srcdir)/am/global-rules
add_subdirectory(grid)
add_subdirectory( grid )
add_subdirectory(prismgrid)
add_subdirectory(test)
install(FILES
set( HEADERS
prismgrid.hh
DESTINATION include/dune/grid)
)
install( FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/grid )
install(FILES
set( HEADERS
boundarysegmentindexset.hh
capabilities.hh
columniterator.hh
datahandle.hh
declaration.hh
dgfparser.cc
dgfparser.hh
entity.hh
entityiterator.hh
......@@ -25,5 +24,7 @@ install(FILES
normalgrid.hh
persistentcontainer.hh
tangentialgeometry.hh
utility.hh
DESTINATION include/dune/grid/prismgrid)
utility.hh
)
install( FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/grid/prismgrid )
add_executable("test-prismgrid" test-prismgrid.cc)
target_link_dune_default_libraries("test-prismgrid")
add_directory_test_target( alltests )
set( TESTS
test-prismgrid
)
foreach( test ${TESTS} )
add_executable( ${test} EXCLUDE_FROM_ALL ${test}.cc )
target_link_dune_default_libraries( ${test} )
add_test( ${test} ${test} )
add_dependencies( ${alltests} ${test} )
endforeach()
install(PROGRAMS dune-prismgrid.m4 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dune/aclocal)
install( PROGRAMS dune-prismgrid.m4 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dune/aclocal )
M4FILES = dune-prismgrid.m4
aclocaldir = $(datadir)/dune/aclocal
M4FILES = dune-prismgrid.m4
aclocal_DATA = $(M4FILES)
EXTRA_DIST = $(M4FILES) CMakeLists.txt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment