Back to home page

EIC code displayed by LXR

 
 

    


Warning, /eic-opticks/CSG/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 set(name CSG)
0002 
0003 set(SOURCES)
0004 set(HEADERS)
0005 
0006 set(CSG_HEADERS)
0007 set(INTERSECT_HEADERS)
0008 
0009 list(APPEND SOURCES
0010     CSGNode.cc
0011     CU.cc
0012     CSGPrim.cc
0013     CSGSolid.cc
0014     CSGFoundry.cc
0015     CSGCopy.cc
0016     CSGMaker.cc
0017     CSGImport.cc
0018     CSGTarget.cc
0019 
0020     CSGScan.cc
0021     CSGScan.cu
0022 
0023     CSGView.cc
0024     CSGGrid.cc
0025     CSGQuery.cc
0026     CSGGeometry.cc
0027     CSGDraw.cc
0028     CSGRecord.cc
0029     CSGSimtraceRerun.cc
0030     CSGSimtraceSample.cc
0031     CSGSimtrace.cc
0032 
0033     CSGDebug_Cylinder.cc
0034 
0035     CSG_LOG.cc
0036 )
0037     
0038 list(APPEND CSG_HEADERS
0039     CSGNode.h 
0040 
0041     CU.h
0042     CSGPrim.h
0043     CSGSolid.h
0044 
0045     CSGParams.h 
0046 
0047     CSGFoundry.h
0048 
0049     CSGCopy.h
0050     CSGMaker.h
0051     CSGImport.h
0052     CSGTarget.h
0053     CSGScan.h
0054     CSGView.h
0055     CSGGrid.h
0056     CSGQuery.h
0057     CSGGeometry.h
0058     CSGDraw.h
0059     CSGRecord.h
0060 
0061     CSGEnum.h
0062 
0063     CSGSimtraceRerun.h
0064     CSGSimtrace.hh
0065     CSGDebug_Cylinder.hh
0066 
0067     CSG_LOG.hh 
0068     CSG_API_EXPORT.hh 
0069 )
0070 
0071 list(APPEND INTERSECT_HEADERS
0072     csg_intersect_leaf.h 
0073     csg_intersect_node.h 
0074     csg_intersect_tree.h 
0075 
0076     csg_intersect_leaf_box3.h
0077     csg_intersect_leaf_convexpolyhedron.h
0078     csg_intersect_leaf_cylinder.h
0079     csg_intersect_leaf_disc.h
0080     csg_intersect_leaf_head.h
0081     csg_intersect_leaf_hyperboloid.h
0082     csg_intersect_leaf_infcylinder.h
0083     csg_intersect_leaf_newcone.h
0084     csg_intersect_leaf_oldcone.h
0085     csg_intersect_leaf_oldcylinder.h
0086     csg_intersect_leaf_phicut.h
0087     csg_intersect_leaf_plane.h
0088     csg_intersect_leaf_slab.h
0089     csg_intersect_leaf_sphere.h
0090     csg_intersect_leaf_templated.h
0091     csg_intersect_leaf_thetacut.h
0092     csg_intersect_leaf_zsphere.h
0093 
0094     csg_robust_quadratic_roots.h
0095     csg_classify.h
0096     csg_pack.h
0097     csg_stack.h
0098     csg_tranche.h
0099     csg_error.h
0100     csg_postorder.h
0101 
0102     f4_stack.h
0103 )
0104 
0105 list(APPEND HEADERS
0106     ${CSG_HEADERS}
0107     ${INTERSECT_HEADERS}
0108 )
0109 
0110 add_library( ${name} ${SOURCES} )
0111 
0112 target_compile_definitions( ${name} PUBLIC OPTICKS_CSG )
0113 target_compile_definitions( ${name} PUBLIC WITH_CONTIGUOUS )
0114 target_compile_definitions( ${name} PUBLIC WITH_S_BB )
0115 target_compile_definitions( ${name} PRIVATE GLM_ENABLE_EXPERIMENTAL )
0116 
0117 target_include_directories(${name} PUBLIC
0118     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
0119     $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
0120     $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}>
0121     $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/CSG>
0122 )
0123 
0124 target_link_libraries(${name} SysRap)
0125 
0126 install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/${name})
0127 
0128 install(TARGETS ${name}
0129         EXPORT ${PROJECT_NAME}Targets
0130         LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
0131         ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
0132 )