mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
cmake install components
This commit is contained in:
parent
ad8d247f9d
commit
bd18af5676
@ -74,7 +74,7 @@ include_directories ("${PROJECT_BINARY_DIR}")
|
|||||||
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake_modules")
|
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake_modules")
|
||||||
set(ng_install_dir RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
|
set(ng_install_dir RUNTIME DESTINATION bin COMPONENT netgen LIBRARY DESTINATION lib COMPONENT netgen_devel ARCHIVE DESTINATION lib COMPONENT netgen_devel)
|
||||||
|
|
||||||
include (CheckIncludeFiles)
|
include (CheckIncludeFiles)
|
||||||
check_include_files (dlfcn.h HAVE_DLFCN_H)
|
check_include_files (dlfcn.h HAVE_DLFCN_H)
|
||||||
@ -148,10 +148,10 @@ if (USE_GUI)
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
get_filename_component(MY_LIB_DIR ${TK_LIBRARY} DIRECTORY)
|
get_filename_component(MY_LIB_DIR ${TK_LIBRARY} DIRECTORY)
|
||||||
find_library(LIBTOGL NAMES togl togl17 HINTS ${MY_LIB_DIR} )
|
find_library(LIBTOGL NAMES togl togl17 HINTS ${MY_LIB_DIR} )
|
||||||
install( DIRECTORY "${MY_LIB_DIR}/tcl8.5" DESTINATION lib )
|
install( DIRECTORY "${MY_LIB_DIR}/tcl8.5" DESTINATION lib COMPONENT netgen )
|
||||||
install( DIRECTORY "${MY_LIB_DIR}/tk8.5" DESTINATION lib )
|
install( DIRECTORY "${MY_LIB_DIR}/tk8.5" DESTINATION lib COMPONENT netgen )
|
||||||
install( DIRECTORY "${MY_LIB_DIR}/tix8.4.3" DESTINATION lib )
|
install( DIRECTORY "${MY_LIB_DIR}/tix8.4.3" DESTINATION lib COMPONENT netgen )
|
||||||
install( DIRECTORY "${MY_LIB_DIR}/../bin" DESTINATION .)
|
install( DIRECTORY "${MY_LIB_DIR}/../bin" DESTINATION . COMPONENT netgen )
|
||||||
else(WIN32)
|
else(WIN32)
|
||||||
set(LIBTOGL togl)
|
set(LIBTOGL togl)
|
||||||
ADD_DEFINITIONS(-DTOGL_X11)
|
ADD_DEFINITIONS(-DTOGL_X11)
|
||||||
|
@ -1 +1 @@
|
|||||||
INSTALL(FILES ng4.pdf DESTINATION doc)
|
INSTALL(FILES ng4.pdf DESTINATION doc COMPONENT netgen_doc)
|
||||||
|
@ -14,7 +14,7 @@ endif(APPLE)
|
|||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries(csg mesh ${PYTHON_LIBS})
|
target_link_libraries(csg mesh ${PYTHON_LIBS})
|
||||||
target_link_libraries(csg ${PYTHON_LIBS})
|
target_link_libraries(csg ${PYTHON_LIBS})
|
||||||
install( TARGETS csg DESTINATION lib )
|
install( TARGETS csg DESTINATION lib COMPONENT netgen)
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ if(USE_GUI)
|
|||||||
if(APPLE)
|
if(APPLE)
|
||||||
set_target_properties( csgvis PROPERTIES SUFFIX ".so")
|
set_target_properties( csgvis PROPERTIES SUFFIX ".so")
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
install( TARGETS csgvis DESTINATION lib )
|
install( TARGETS csgvis DESTINATION lib COMPONENT netgen)
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
endif(USE_GUI)
|
endif(USE_GUI)
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@ add_library(gen OBJECT
|
|||||||
|
|
||||||
set_target_properties( gen PROPERTIES POSITION_INDEPENDENT_CODE ON )
|
set_target_properties( gen PROPERTIES POSITION_INDEPENDENT_CODE ON )
|
||||||
|
|
||||||
install( FILES ngexception.hpp DESTINATION include )
|
install( FILES ngexception.hpp DESTINATION include COMPONENT netgen_devel )
|
||||||
|
|
||||||
|
@ -3,14 +3,14 @@ add_library(geom2d ${NG_LIB_TYPE} genmesh2d.cpp geom2dmesh.cpp geometry2d.cpp py
|
|||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries(geom2d mesh ${PYTHON_LIBS})
|
target_link_libraries(geom2d mesh ${PYTHON_LIBS})
|
||||||
install( TARGETS geom2d DESTINATION lib )
|
install( TARGETS geom2d DESTINATION lib COMPONENT netgen)
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
if(USE_GUI)
|
if(USE_GUI)
|
||||||
add_library(geom2dvis ${NG_LIB_TYPE} geom2dpkg.cpp vsgeom2d.cpp)
|
add_library(geom2dvis ${NG_LIB_TYPE} geom2dpkg.cpp vsgeom2d.cpp)
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries(geom2dvis geom2d)
|
target_link_libraries(geom2dvis geom2d)
|
||||||
install( TARGETS geom2dvis DESTINATION lib )
|
install( TARGETS geom2dvis DESTINATION lib COMPONENT netgen)
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
endif(USE_GUI)
|
endif(USE_GUI)
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
install(FILES nginterface.h nginterface_v2.hpp DESTINATION include)
|
install(FILES nginterface.h nginterface_v2.hpp DESTINATION include COMPONENT netgen_devel)
|
||||||
|
|
||||||
|
@ -20,6 +20,6 @@ if(NOT WIN32)
|
|||||||
if(USE_GUI)
|
if(USE_GUI)
|
||||||
target_link_libraries(interface visual)
|
target_link_libraries(interface visual)
|
||||||
endif(USE_GUI)
|
endif(USE_GUI)
|
||||||
install( TARGETS interface DESTINATION lib )
|
install( TARGETS interface DESTINATION lib COMPONENT netgen )
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
|
@ -30,6 +30,6 @@ endif(APPLE)
|
|||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries( mesh ${ZLIB_LIBRARIES} ${MPI_CXX_LIBRARIES} ${PYTHON_LIBS} ${METIS_LIBRARY})
|
target_link_libraries( mesh ${ZLIB_LIBRARIES} ${MPI_CXX_LIBRARIES} ${PYTHON_LIBS} ${METIS_LIBRARY})
|
||||||
install( TARGETS mesh DESTINATION lib )
|
install( TARGETS mesh DESTINATION lib COMPONENT netgen )
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
|
@ -9,6 +9,6 @@ add_library(occvis ${NG_LIB_TYPE} occpkg.cpp vsocc.cpp)
|
|||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries( occ ${OCCLIBS} ${PYTHON_LIBS})
|
target_link_libraries( occ ${OCCLIBS} ${PYTHON_LIBS})
|
||||||
target_link_libraries( occvis occ )
|
target_link_libraries( occvis occ )
|
||||||
install( TARGETS occ occvis DESTINATION lib )
|
install( TARGETS occ occvis DESTINATION lib COMPONENT netgen )
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ add_library(stl ${NG_LIB_TYPE}
|
|||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries( stl mesh ${PYTHON_LIBS})
|
target_link_libraries( stl mesh ${PYTHON_LIBS})
|
||||||
target_link_libraries( stl ${PYTHON_LIBS})
|
target_link_libraries( stl ${PYTHON_LIBS})
|
||||||
install( TARGETS stl DESTINATION lib )
|
install( TARGETS stl DESTINATION lib COMPONENT netgen )
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
if(USE_GUI)
|
if(USE_GUI)
|
||||||
@ -15,7 +15,7 @@ if(USE_GUI)
|
|||||||
)
|
)
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries( stlvis stl )
|
target_link_libraries( stlvis stl )
|
||||||
install( TARGETS stlvis DESTINATION lib )
|
install( TARGETS stlvis DESTINATION lib COMPONENT netgen )
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
endif(USE_GUI)
|
endif(USE_GUI)
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_definitions(-DNGINTERFACE_EXPORTS)
|
add_definitions(-DNGINTERFACE_EXPORTS)
|
||||||
install(FILES soldata.hpp DESTINATION include)
|
install(FILES soldata.hpp DESTINATION include COMPONENT netgen_devel )
|
||||||
|
|
||||||
# AM_CPPFLAGS = $(MPI_INCLUDES) -I$(top_srcdir)/libsrc/include -DOPENGL -D$(TOGL_WINDOWINGSYSTEM) $(OCCFLAGS) $(TCL_INCLUDES)
|
# AM_CPPFLAGS = $(MPI_INCLUDES) -I$(top_srcdir)/libsrc/include -DOPENGL -D$(TOGL_WINDOWINGSYSTEM) $(OCCFLAGS) $(TCL_INCLUDES)
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ if(USE_GUI)
|
|||||||
)
|
)
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries( visual ${PYTHON_LIBS} ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ${TCL_LIBRARY} )
|
target_link_libraries( visual ${PYTHON_LIBS} ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ${TCL_LIBRARY} )
|
||||||
install( TARGETS visual DESTINATION lib )
|
install( TARGETS visual DESTINATION lib COMPONENT netgen )
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
endif(USE_GUI)
|
endif(USE_GUI)
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ install(FILES
|
|||||||
ngvisual.tcl sockets.tcl drawing.tcl nghelp.tcl ngshell.tcl
|
ngvisual.tcl sockets.tcl drawing.tcl nghelp.tcl ngshell.tcl
|
||||||
ngtesting.tcl parameters.tcl variables.tcl csgeom.tcl stlgeom.tcl
|
ngtesting.tcl parameters.tcl variables.tcl csgeom.tcl stlgeom.tcl
|
||||||
occgeom.tcl acisgeom.tcl netgen.ocf
|
occgeom.tcl acisgeom.tcl netgen.ocf
|
||||||
DESTINATION bin)
|
DESTINATION bin COMPONENT netgen)
|
||||||
|
|
||||||
if(USE_GUI AND NOT WIN32)
|
if(USE_GUI AND NOT WIN32)
|
||||||
add_subdirectory(Togl-1.7)
|
add_subdirectory(Togl-1.7)
|
||||||
|
@ -45,4 +45,4 @@ if(NOT WIN32)
|
|||||||
install(TARGETS nglib ng_vol ng_stl ${ng_install_dir})
|
install(TARGETS nglib ng_vol ng_stl ${ng_install_dir})
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
install(TARGETS nglib ${ng_install_dir})
|
install(TARGETS nglib COMPONENT netgen ${ng_install_dir})
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
install( FILES
|
install( FILES
|
||||||
shaft.geo mesh.py exportNeutral.py
|
shaft.geo mesh.py exportNeutral.py
|
||||||
DESTINATION share/netgen/py_tutorials
|
DESTINATION share/netgen/py_tutorials
|
||||||
|
COMPONENT netgen_tutorial
|
||||||
)
|
)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
install(FILES
|
install(FILES __init__.py meshing.py csg.py
|
||||||
__init__.py meshing.py csg.py
|
|
||||||
DESTINATION ${PYTHON_PACKAGES_INSTALL_DIR}/netgen
|
DESTINATION ${PYTHON_PACKAGES_INSTALL_DIR}/netgen
|
||||||
)
|
COMPONENT netgen
|
||||||
|
)
|
||||||
|
|
||||||
|
@ -8,4 +8,5 @@ install( FILES
|
|||||||
hinge.stl part1.stl frame.step screw.step
|
hinge.stl part1.stl frame.step screw.step
|
||||||
squarehole.in2d squarecircle.in2d square.in2d
|
squarehole.in2d squarecircle.in2d square.in2d
|
||||||
DESTINATION share/netgen
|
DESTINATION share/netgen
|
||||||
|
COMPONENT netgen_tutorial
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user