Commit in gdml2/CPPGDML on MAIN | |||
CMakeLists.txt | +5 | -10 | 1.2 -> 1.3 |
add library installation
diff -u -r1.2 -r1.3 --- CMakeLists.txt 10 Apr 2013 21:00:12 -0000 1.2 +++ CMakeLists.txt 10 Apr 2013 21:27:47 -0000 1.3 @@ -32,13 +32,11 @@
# find Xerces C++ find_package ( XERCES REQUIRED )
- -# error if no Xerces
IF( NOT XERCES_FOUND ) MESSAGE( FATAL_ERROR "Xerces was not found! Define XERCES_DIR when calling cmake." ) ENDIF()
-# Find Geant4
+# find Geant4
find_package(Geant4 REQUIRED) if ( NOT Geant4_FOUND ) MESSAGE( FATAL_ERROR "Geant4 was not found! Define Geant4_DIR when calling cmake." )
@@ -58,12 +56,6 @@
${PROJECT_SOURCE_DIR}/G4Binding/G4Writer )
-#MESSAGE( STATUS "library_source_dirs=${library_source_dirs}" ) - -#FOREACH( _src ${library_source_dirs} ) -# MESSAGE( STATUS "src=${_src}") -#ENDFOREACH() -
# macro for collating sources macro(GDML_COLLATE_APPLICATION_SOURCES source_dest_var source_dir ) FILE( GLOB_RECURSE local_source ${source_dir}/src/*.cpp )
@@ -81,7 +73,7 @@
ADD_DEFINITIONS( "-Wno-long-long" ) # additional compilation flags
-ADD_DEFINITIONS(${Geant4_DEFINITIONS})
+ADD_DEFINITIONS( ${Geant4_DEFINITIONS} )
# include directories INCLUDE_DIRECTORIES( ${XERCES_INCLUDE_DIR} ${Geant4_INCLUDE_DIRS} )
@@ -92,5 +84,8 @@
# output shared library ADD_LIBRARY( gdml SHARED ${library_sources} )
+# install library +INSTALL( TARGETS gdml DESTINATION ${CMAKE_INSTALL_PREFIX}/lib ) +
# generate package configuration GENERATE_PACKAGE_CONFIGURATION_FILES( GDMLConfig.cmake GDMLConfigVersion.cmake GDMLLibDeps.cmake )
\ No newline at end of file
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1