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

Added cmake package configuration files to find UG using find_package(ug).

[[Imported from SVN: r8416]]
parent 6bf986e5
No related branches found
No related tags found
No related merge requests found
set(prefix @prefix@)
set(exec_prefix @exec_prefix@)
set(libdir @libdir@)
set(includedir @includedir@)
set(parallel @parallel@)
set(fordune @fordune@)
set(UG_LIBRARIES -ldevS @UG_XLIBS@)
set(UG_LIBRARY_FLAGS -L${libdir})
set(UG_INCLUDES ${includedir}/ug)
set(UG_COMPILE_FLAGS @UG_EXTRAFLAGS@)
message(STATUS "UG_LIBRARIES=${UG_LIBRARIES}")
message(STATUS "UG_LIBRARY_FLAGS=${UG_LIBRARY_FLAGS}")
message(STATUS "UG_INCLUDES=${UG_INCLUDES}")
message(STATUS "UG_COMPILE_FLAGS=${UG_COMPILE_FLAGS}")
\ No newline at end of file
......@@ -12,6 +12,10 @@ uginclude_HEADERS = initug.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libug.pc
#install cmake package configuration
cmakeconfigdir = $(libdir)/cmake/ug
cmakeconfig_DATA = ug-config.cmake ug-config-version.cmake
# !!! crazy trick to get include-dir compatibility
# Crazy indeed. Let's at least not install f2c.h (because it creates
# problems) and std_internal.h (because we definitely know that it is an internal header).
......
#if(NOT UG_FOUND)
set(prefix /home/mblatt/src/dune/3rdParty/grids/ug-install)
set(exec_prefix ${prefix})
set(libdir ${exec_prefix}/lib)
set(includedir ${prefix}/include)
set(parallel no)
set(fordune yes)
set(UG_LIBRARIES -ldevS -lX11 -lXt)
set(UG_LIBRARY_FLAGS -L${libdir})
set(UG_INCLUDES ${includedir}/ug)
set(UG_COMPILE_FLAGS -DFOR_DUNE)
message(STATUS "UG_LIBRARIES=${UG_LIBRARIES}")
message(STATUS "UG_LIBRARY_FLAGS=${UG_LIBRARY_FLAGS}")
message(STATUS "UG_INCLUDES=${UG_INCLUDES}")
message(STATUS "UG_COMPILE_FLAGS=${UG_COMPILE_FLAGS}")
#endif(NOT UG_FOUND)
......@@ -243,6 +243,8 @@ AC_CONFIG_FILES([Makefile
parallel/ddd/Makefile
parallel/dddif/Makefile
libug.pc
ug-config.cmake
ug-config-version.cmake
])
AC_OUTPUT
......
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