source: trunk/source/visualization/externals/gl2ps/sources.cmake @ 1355

Last change on this file since 1355 was 1350, checked in by garnier, 14 years ago

update to last version 4.9.4

File size: 1.5 KB
Line 
1#------------------------------------------------------------------------------
2# sources.cmake
3# Module : G4gl2ps
4# Package: Geant4.src.G4visualization..G4gl2ps
5#
6# Sources description for a library.
7# Lists the sources and headers of the code explicitely.
8# Lists include paths needed.
9# Lists the internal granular and global dependencies of the library.
10# Source specific properties should be added at the end.
11#
12# Generated on : 24/9/2010
13#
14# $Id: sources.cmake,v 1.5 2010/12/01 16:59:36 bmorgan Exp $
15# GEANT4 Tag $Name:  $
16#
17#------------------------------------------------------------------------------
18
19# List external includes needed.
20include_directories(${CLHEP_INCLUDE_DIRS})
21
22# List internal includes needed.
23include_directories(${CMAKE_SOURCE_DIR}/source/visualization/externals/zlib/include)
24
25# Must have GL headers available
26include_directories(${OPENGL_INCLUDE_DIR})
27
28#
29# We need to add definitions depending on what GL drivers are built
30#
31if(GEANT4_USE_OPENGL)
32    ADD_DEFINITIONS(-DG4VIS_BUILD_OPENGL_DRIVER)
33endif()
34
35if(GEANT4_USE_INVENTOR)
36    ADD_DEFINITIONS(-DG4VIS_BUILD_OI_DRIVER)
37endif()
38
39#
40# Define the Geant4 Module.
41#
42include(Geant4MacroDefineModule)
43GEANT4_DEFINE_MODULE(NAME G4gl2ps
44    HEADERS
45        G4OpenGL2PSAction.hh
46        Geant4_gl2ps.h
47        gl2ps.h
48    SOURCES
49        G4OpenGL2PSAction.cc
50        gl2ps.cc
51    GRANULAR_DEPENDENCIES
52        G4zlib
53    GLOBAL_DEPENDENCIES
54        G4zlib
55    LINK_LIBRARIES
56        ${OPENGL_LIBRARIES}
57)
58
59# List any source specific properties here
60
Note: See TracBrowser for help on using the repository browser.