mirror of https://github.com/CGAL/cgal
build_cgal_library -> collect_cgal_library (new macro name)
This commit is contained in:
parent
10af9912d9
commit
00d31036ea
|
|
@ -45,7 +45,7 @@ if(OPENGL_FOUND)
|
|||
|
||||
include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_ImageIO_3RD_PARTY_INCLUDE_DIRS} )
|
||||
|
||||
build_cgal_library( CGAL_ImageIO CGALImageIO "")
|
||||
collect_cgal_library( CGAL_ImageIO CGALImageIO "")
|
||||
|
||||
add_dependencies( CGAL_ImageIO CGAL )
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ include_directories (${CGAL_3RD_PARTY_INCLUDE_DIRS})
|
|||
|
||||
add_definitions(${CGAL_3RD_PARTY_DEFINITIONS})
|
||||
|
||||
build_cgal_library(CGAL_Core CGALCore "")
|
||||
collect_cgal_library(CGAL_Core CGALCore "")
|
||||
|
||||
target_link_libraries( CGAL_Core ${CGAL_LIBRARY} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ if( QT4_FOUND )
|
|||
|
||||
include_directories( ${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt4_3RD_PARTY_INCLUDE_DIRS} )
|
||||
|
||||
build_cgal_library( CGAL_Qt4 CGALQt4 "${additional_files}")
|
||||
collect_cgal_library( CGAL_Qt4 CGALQt4 "${additional_files}")
|
||||
|
||||
add_dependencies( CGAL_Qt4 CGAL )
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
message(STATUS "Configure libCGAL")
|
||||
|
||||
build_cgal_library(CGAL CGAL "")
|
||||
collect_cgal_library(CGAL CGAL "")
|
||||
|
||||
use_lib( GMP "###")
|
||||
use_lib( MPFR "###")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
macro (build_cgal_library LIBRARY_NAME LIBRARY_DIR_NAME ADDITIONAL_FILES)
|
||||
macro (collect_cgal_library LIBRARY_NAME LIBRARY_DIR_NAME ADDITIONAL_FILES)
|
||||
# IMPORTANT: First delete all_files.cpp
|
||||
if (EXISTS ${CMAKE_CURRENT_BINARY_DIR}/all_files.cpp)
|
||||
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/all_files.cpp)
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ if( QT3_FOUND )
|
|||
|
||||
# message(STATUS QT3-mocfiles: ${CGAL_Qt3_MOC_FILES})
|
||||
|
||||
build_cgal_library( CGAL_Qt3 CGALQt3 "${CGAL_Qt3_MOC_FILES}")
|
||||
collect_cgal_library( CGAL_Qt3 CGALQt3 "${CGAL_Qt3_MOC_FILES}")
|
||||
|
||||
foreach(mocfile ${CGAL_Qt3_MOC_FILES})
|
||||
add_file_dependencies(${CMAKE_CURRENT_BINARY_DIR}/all_files.cpp ${CMAKE_CURRENT_BINARY_DIR}/${mocfile})
|
||||
|
|
|
|||
Loading…
Reference in New Issue