CMake: export targets

This commit is contained in:
Matthias Hochsteger 2016-12-20 13:06:43 +01:00
parent 9790774b49
commit d95999161d

View File

@ -99,7 +99,8 @@ else(APPLE)
set(ng_install_dir_bin bin)
set(ng_install_dir_lib lib)
endif(APPLE)
set(ng_install_dir RUNTIME DESTINATION ${ng_install_dir_bin} COMPONENT netgen LIBRARY DESTINATION ${ng_install_dir_lib} COMPONENT netgen_devel ARCHIVE DESTINATION ${ng_install_dir_lib} COMPONENT netgen_devel)
set(ng_install_dir EXPORT netgen-targets RUNTIME DESTINATION ${ng_install_dir_bin} COMPONENT netgen LIBRARY DESTINATION ${ng_install_dir_lib} COMPONENT netgen_devel ARCHIVE DESTINATION ${ng_install_dir_lib} COMPONENT netgen_devel)
install(EXPORT netgen-targets DESTINATION share/cmake)
include (CheckIncludeFiles)
check_include_files (dlfcn.h HAVE_DLFCN_H)