mirror of https://github.com/CGAL/cgal
Fixed "Core" component name in autogenerated cmake scripts
This commit is contained in:
parent
b3a611f4a0
commit
1ec0942208
|
|
@ -57,7 +57,10 @@ EOF
|
|||
all="$all $file"
|
||||
done
|
||||
cat <<'EOF'
|
||||
find_package(CGAL QUIET COMPONENTS CORE Qt3 )
|
||||
find_package(CGAL QUIET COMPONENTS Core Qt3 )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include( ${CGAL_USE_FILE} )
|
||||
|
||||
find_package(Qt3-patched QUIET )
|
||||
|
|
@ -91,16 +94,26 @@ EOF
|
|||
|
||||
# Link the executable to CGAL and third-party libraries
|
||||
target_link_libraries(${target_name} \${QT3_LIBRARIES} \${CGAL_LIBRARIES} \${CGAL_3RD_PARTY_LIBRARIES} )
|
||||
else(CGAL_Qt3_FOUND AND QT3_FOUND)
|
||||
else()
|
||||
|
||||
message(STATUS "This demo requires Qt3 and the CGAL Qt3 library, and will not be compiled.")
|
||||
|
||||
endif(CGAL_Qt3_FOUND AND QT3_FOUND)
|
||||
endif()
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This demo requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
EOF
|
||||
|
||||
else
|
||||
|
||||
cat <<'EOF'
|
||||
find_package(CGAL REQUIRED CORE )
|
||||
find_package(CGAL QUIET COMPONENTS Core )
|
||||
|
||||
if ( CGAL_FOUND )
|
||||
|
||||
include( ${CGAL_USE_FILE} )
|
||||
|
||||
include( CreateSingleSourceCGALProgram )
|
||||
|
|
@ -120,6 +133,16 @@ EOF
|
|||
echo "create_single_source_cgal_program( \"$file\" )"
|
||||
fi
|
||||
done
|
||||
|
||||
cat <<'EOF'
|
||||
|
||||
else()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
|
||||
endif()
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
echo
|
||||
|
|
|
|||
Loading…
Reference in New Issue