From 4adf0842c02c25c4c416147b44f87497e9c87047 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Wed, 17 Aug 2016 23:50:26 +0200 Subject: [PATCH] cmake: install header required to use openEMS library Signed-off-by: Thorsten Liebig --- CMakeLists.txt | 3 +++ nf2ff/CMakeLists.txt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5434138..9f72ed4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,6 +158,8 @@ set(SOURCES openems.cpp ) +set(PUB_HEADERS openems.h) + # libs ADD_SUBDIRECTORY( tools ) ADD_SUBDIRECTORY( FDTD ) @@ -204,5 +206,6 @@ if (UNIX) PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE) endif() endif () +INSTALL(FILES ${PUB_HEADERS} DESTINATION include/openEMS) INSTALL( DIRECTORY matlab DESTINATION share/openEMS ) # TODO mpi, tarball, debug, release diff --git a/nf2ff/CMakeLists.txt b/nf2ff/CMakeLists.txt index d43d519..ef8bc6f 100644 --- a/nf2ff/CMakeLists.txt +++ b/nf2ff/CMakeLists.txt @@ -47,5 +47,7 @@ TARGET_LINK_LIBRARIES(nf2ff_bin nf2ff) INSTALL(TARGETS nf2ff_bin DESTINATION bin) INSTALL(TARGETS nf2ff DESTINATION lib${LIB_SUFFIX}) +INSTALL(FILES ${HEADERS} DESTINATION include/openEMS) + #TODO tarball, debug, release